kill timer - 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: kill timer (
/showthread.php?tid=112781)
kill timer -
Lajko1 - 10.12.2009
i already ask but no answer that can solve my problem,i make timer when player enter the checkpoint and than it sart Count Down ...
and i put under OnPlayerLeaveCheckpoint KillTimer .... but when i enter checkpoint the coundown start but when i leave checkpoint it wont stop and than all gamemode is bugged ...
here u ahve the full code:
http://pastebin.com/m6acd2141
I hope u can help me with this cuz its important for me
Ty for any help
Re: kill timer -
Lajko1 - 10.12.2009
anyone ?
Re: kill timer -
Malice - 10.12.2009
Right off the bat I see you don't collect the values of SetTimer in OnPlayerEnterStreamedCheckpoint. SetTimer is not a one time thing, it can/will return a different value the next time you use it.
Re: kill timer -
Lajko1 - 10.12.2009
and how i can fix that ?
Re: kill timer -
Mikep. - 10.12.2009
It's not a bug, it's meant to be like that..
new timer;
timer = SetTimerEx(...);
KillTimer(timer);