SetTimer and SetTimerEx - 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 and SetTimerEx (
/showthread.php?tid=335085)
SetTimer and SetTimerEx -
Xtreme Brotherz - 17.04.2012
what is the difference between SetTimer and SetTimerEx?
is there any way to kill settimerEx??
pls help!!!
Re: SetTimer and SetTimerEx -
sampmark05 - 17.04.2012
Settimer=https://sampwiki.blast.hk/wiki/SetTimer
SettimerEx=https://sampwiki.blast.hk/wiki/SetTimerEx
Re: SetTimer and SetTimerEx -
Jonny5 - 17.04.2012
the difference is one calls a public function at a set interval
the other SetTimerEx does the same
however it allows you to also pass arguments to the function
Thats the only difference i can tell.
Re: SetTimer and SetTimerEx -
ReneG - 17.04.2012
This will run the timer for only one person.
pawn Код:
SetTimer("KillPlayer",5000,false);
This will run a timer for each player so as to not get mixed up timers.
pawn Код:
SetTimerEx("KillPlayer",5000,false,"d",playerid);
Re: SetTimer and SetTimerEx -
iggy1 - 17.04.2012
SetTimer is for calling functions with no parameters.
SetTimerEx is for calling functions with params.
To kill any timer.
pawn Код:
new timer = SetTimerEx("somefunc", 1000, false, "dd", 1, 3);
KillTimer(timer);