SA-MP Forums Archive
Timers - 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: Timers (/showthread.php?tid=182411)



Timers - ScottCFR - 10.10.2010

I have something in my server that runs off timers. For some reason the timer won't kill and it spams the hell out of my server causing it to crash. Is there any alternative to timers, or a way to fix this?

Edit: I'm on 0.2x


Re: Timers - WillyP - 10.10.2010

KillTimer ?


Re: Timers - ScottCFR - 10.10.2010

I use that, it's not working after 3 or 4 rounds of the mini-game


Re: Timers - Austin - 10.10.2010

Maybe you're not killing it in the right place? Maybe you're creating twice without destroying the first one?


Re: Timers - CJ101 - 10.10.2010

Are you using it right?

Код:
new Timer = SetTimer("Timer1",1000,1);
KillTimer(Timer);



Re: Timers - ScottCFR - 10.10.2010

Obviously, yes. It works like 3 - 4 times, then pretty much stops.


Re: Timers - Austin - 10.10.2010

Is the timer a global var or local?