SA-MP Forums Archive
Timer calls - 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 calls (/showthread.php?tid=502222)



Timer calls - Mauricee - 22.03.2014

Hello, I have a bug on my server.
Sometimes a timer call himself and my server crash. I have a 1 minute timer, but I don't know how, the timer run away and call 10 times in a second...

I have installed crashdetect but nothing is found, suggestions?


Re: Timer calls - PrivatioBoni - 22.03.2014

Could we see it?


Re: Timer calls - MP2 - 23.03.2014

If you have a 10-minute timer but it's being called very frequently, it'd because that timer has been set multiple times.


Re: Timer calls - Mauricee - 23.03.2014

The timer is set only 1 time!


Re: Timer calls - MP2 - 23.03.2014

When does it get set? Put a debug message there so you know when it gets set.


Re: Timer calls - Hanuman - 23.03.2014

what the timer contains? Gve us the codes of the function that timer contains


Re: Timer calls - Lloyde - 23.03.2014

Can we see it what is the problem ?


Re: Timer calls - Mauricee - 23.03.2014

Before the server restarts, I get

Quote:

[09:11:41] Incoming connection: 92.83.40.226:54502
[09:12:07] Warning: client exceeded 'messageholelimit' (1) 5.13.98.255:63273 (503 Limit: 3000
[09:12:11] Kicking 92.83.40.226 because they didn't logon to the game.
[09:12:31] Warning: client exceeded 'messageholelimit' (1) 79.114.107.153:52628 (4076) Limit: 3000
[09:12:54] Incoming connection: 109.96.10.23:3864

Edit: sometimes timer no. 1, sometimes timer no. 2 ... I don't know why these timmers called himself ...

Код:
	spdtimer = SetTimer("Speedo", 750, 1);
	usetimer = SetTimer("UsedTimer", 60000, 1);
	othtimer = SetTimer("OtherTimer", 1000, 1);
	spectatetimer = SetTimer("Spectator", 500, 1);
I use fixes2 from ******