SA-MP Forums Archive
Question about 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: Question about timers (/showthread.php?tid=565622)



Question about timers - Etolas - 28.02.2015

Hello to everyone,

I've just a little question:

When I write a timer set to false for repeating, have I to kill it then or is it kill automatically ?
Because I saw in some script people who kill it.

Thanks for you answers.


Re: Question about timers - BeesSi - 28.02.2015

Well it's not necessary , I never kill them and they work fine.


Respuesta: Question about timers - alexus - 28.02.2015

If you need to stop the timer and you don't know if it is still running, kill it. Timer IDs are never used twice so you can use KillTimer() on a timer ID and it won't matter if it's running or not.