SA-MP Forums Archive
Timer and endless loop - 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: Timer and endless loop (/showthread.php?tid=504131)



Timer and endless loop - RollingFlow - 02.04.2014

Hey guys! I'm using a timer
Код:
SetTimerEx("KillingDisabled",false, 100000, "d", playerid);
on onplayerentercheckpoint, and what it does is ignoring the timer of 100 seconds and going instantly to the public KillingDisabled(playerid).

Within KillingDisabled I'm calling an other timer which is 4 seconds, configured exactly the same as above, but that 1 also bugs(called directly and endlessly). I got no idea why it actually repeats itself and ignores the time set, I've never experienced something like this, it basically bugs like a repeating loop, yet there is no loop..