SetTimerEx issue - 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: SetTimerEx issue (
/showthread.php?tid=528553)
SetTimerEx issue -
Natric - 28.07.2014
Hello there,
I don't understand something about SetTimerEx function which is:
When I use SetTimerEx for example for a certain player (anything) and when the time pass (i dont want to stop the timer suddenly before it ends), do I need to use KillTimer?, I mean the time already passed why would I need to kill it etc.. please justify your answers thsi thing is a little bit confusing!.
Re: SetTimerEx issue -
ikkentim - 28.07.2014
https://sampwiki.blast.hk/wiki/SetTimerEx
When repeating is true, the timer will keep ticking until killed.
When false, it will only tick once and die. You can also kill the timer before it even ticked.
Re: SetTimerEx issue -
Natric - 28.07.2014
So if the repeating is set to 'false', and the time that was set has passed and everything worked, do I need to put under the public to KillTimer or not?
Re: SetTimerEx issue -
ikkentim - 28.07.2014
Nope.
Re: SetTimerEx issue -
Beckett - 28.07.2014
No you don't it's not different than SetTimer, except the playerid parameter.