SA-MP Forums Archive
SetTimer & SetTimerEx intervals (Is the wiki wrong?) - 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)
+--- Thread: SetTimer & SetTimerEx intervals (Is the wiki wrong?) (/showthread.php?tid=494332)



SetTimer & SetTimerEx intervals (Is the wiki wrong?) - Phil_Cutcliffe - 12.02.2014

Ok so..

SetTimer & SetTimerEx are supposed to go by milliseconds right? Well that's what I thought going by the wiki....

I've been wondering why for agies when setting my zone timer to 1800000 milliseconds using SetTimer (30 minutes) it was never working.

Then I looked at another one of my SetTimers and realised it was set to 5000 which was happening every 5 minutes. Therefore SetTimer is going by 1000 = 1 minute which is definitely not milliseconds.

I then checked one of my SetTimerEx's and I have a few set to 1000 which is happening every 1 second.

So therefore SetTimer is not milliseconds and SetTimerEx is milliseconds..

Am I correct here or completely loosing my marbles?


Re: SetTimer & SetTimerEx intervals (Is the wiki wrong?) - Konstantinos - 12.02.2014

Both functions use milliseconds as interval.


Re: SetTimer & SetTimerEx intervals (Is the wiki wrong?) - MP2 - 12.02.2014

It's definitely milliseconds. Perhaps your functions have been hooked.


Re: SetTimer & SetTimerEx intervals (Is the wiki wrong?) - Phil_Cutcliffe - 12.02.2014

Omg totally had a brainfart there maybe I should spend less time coding and more time sleeping lol.. xD

I see what I've done never mind!