Posted 29 July 2012 - 09:06 PM
So have been working on a countdown timer, to set off something. I don't know what yet :ph34r:/>/>
So i tried setting the hour time using this code, and that dident work. Beacuse i think when i add it up to the var h, witch is hour i allso add in read(). As thats how fail my code is.
So how would i set the var (hh) with an input?
Thanks
So i tried setting the hour time using this code, and that dident work. Beacuse i think when i add it up to the var h, witch is hour i allso add in read(). As thats how fail my code is.
os.pullEvent = os.pullEventRaw
--Vars
s = 0 --Seconds
m = 0 --Minutes
h = 0 --Hours
hh = 0 -- What to add to h.
print ("Count down timer for: ")
print ("Follow instruction on screen on how to set the time")
print (" Set the hour time")
write ("Hours : ")
input = read()
input = hh
h = h + hh
sleep(2)
print("Hour time set as "..h.."")
So how would i set the var (hh) with an input?
Thanks