ID:1714788
 
(See the best response by Kaiochao.)
Code:
proc
checkTime()
var/time = time2text(world.timeofday, "hh:mm")
if(time == "00:00"||time == "01:00"||time == "02:00"||time == "00:00"......)
VoteStart(/**/)
spawn(5) checkTime()


Problem description:
How can i avoid typing in all full numbers to make vote appear every hour?
Why not just use spawn() and set that for one hour?
proc
Vote()
set background=1
spawn(36000) VoteStart()
Because I want vote to appear every real time hour :)
Use findtext() to see if the last two digits (the minutes) of the time are 00 and if they are run your checktime. With this you'll either need to make it spawn a full minute before running checkTime() or put something in to prevent it from running more than once per minute.
Best response
// the current/previous hour
var hour

// infinite loop
for()
// wait 5 seconds
sleep 50

// get the new current hour
var new_hour = time2text(world.timeofday, "hh")

// the hour is different than it was 5 seconds ago
if(new_hour != hour)
hour = new_hour
VoteStart()

"hour" no longer looks like a word to me.
OOooor we can just give him code to copy paste. That works too I guess.
I'd probably skip the findtext, use time2text(..., "mm"), and set the spawn() time to 1 minute.
Thanks for the help