How to kill timers - 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: How to kill timers (
/showthread.php?tid=637693)
How to kill timers -
Eoussama - 19.07.2017
Hello there everybody, hope you all doing great,
so, as the title states, how to destroy a timer, and no, I do not refer to the native timers that SA-MP supports, I'm talking about y_timers from YSI,
I do this usually
But is it equivalent to?
PHP код:
killTimer(TIMER);
thanks in advance!
Re: How to kill timers -
Paulice - 19.07.2017
Run the second code on a repeating timer. Whether it kills it or not, there's your answer.
Re: How to kill timers -
saffierr - 19.07.2017
I'd use the second one though.
Re: How to kill timers -
SyS - 20.07.2017
Its just a fancy macro alias (from y_timers v3)
PHP код:
#define stop%0; {KillTimer(_:%0);}