I need to know.. timer called every month
#1

I have this timer, which gets called every month ( or actually a second after month changes ). I need to know how accurate SetTimer function actually is in such huge time frame?
pawn Код:
//OnFilterScriptInit()
GetPreciseTimeUntilNextMonth( day, hour, minute, second );
SetTimer( "GlobalUpdate", ( 86400000*day ) + ( 3600000*hour ) + ( 60000*minute ) + ( 1000*second ) + 1000, 0 );
Reply
#2

you are MUCH better off using a cronjob for this, or using timestamps w/ a 1 second timer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)