How to kill a 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to kill a SetTimerEx (
/showthread.php?tid=173423)
How to kill a SetTimerEx -
Sascha - 02.09.2010
Hi...
how can I kill a timer I started with SetTimerEx for the player that uses the /stop command only?
Re: How to kill a SetTimerEx -
CyNiC - 02.09.2010
For this you need create a variable to indentifiers the ID of the timer.
Example:
new timerid[MAX_PLAYERS];
On the moment what the timer is created:
timerid[playerid] = SetTimerEx...;
And to kill him:
KillTimer(timerid[playerid]);
Re: How to kill a SetTimerEx -
Sascha - 02.09.2010
thanks
"The message you have entered is too short. Please lenthen your message to at least 8 characters."