KillTimer - 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: KillTimer (
/showthread.php?tid=258796)
KillTimer -
Pooh7 - 01.06.2011
What will happen if I use KillTimer for timer what is not started?
Example:
pawn Code:
new timer[100];
public OnPlayerConnect(playerid)
{
KillTimer(timer[playerid]);
return 1;
}
Re: KillTimer -
Joe Staff - 01.06.2011
What you're actually doing is deleting the Timer with the ID of 0 (since you haven't set the value of your variable), so unless Timer ID 0 exists, you're doing nothing.