Timers severely messing up, some not working. - 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: Timers severely messing up, some not working. (
/showthread.php?tid=608757)
Timers severely messing up, some not working. -
Dokins - 04.06.2016
The timers I had were working before and now have decided to stop working, what could be the reason for this?
I don't have anywhere near the limit at all. I moved a timer on OnGameModeInit to the bottom and it started working, what could be the cause of that?
Re: Timers severely messing up, some not working. -
Gammix - 04.06.2016
The code above/below is possibly not working in run time due to which the timer execution code line isn't reached.
Re: Timers severely messing up, some not working. -
Dokins - 04.06.2016
How would I find such a thing?
Re: Timers severely messing up, some not working. -
Gammix - 04.06.2016
Try to remove some of the code or code in parts and see if the OnGameModeInit is being executed till the end.
example:
pawn Код:
public OnGameModeInit()
{
// code part 1
// code part 2
print("Till the end.");
}
If till the end is being printed, there is some other fault.
Re: Timers severely messing up, some not working. -
Dokins - 07.06.2016
it prints to the end, timers randomly stop working after a while it's very strange.