SA-MP Forums Archive
I need to know.. timer called every month - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need to know.. timer called every month (/showthread.php?tid=222168)



I need to know.. timer called every month - iMonk3y - 06.02.2011

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 );



Re: I need to know.. timer called every month - Blacklite - 06.02.2011

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