[HELP] Problem with SetTimer
#1

Hi folks, I have a very serious problem on my server.
The case is that something is making the settimer stop working, i.e. some timer are stopping working alone and has no killtimer to kill them.
What can cause this?
Reply
#2

Probably there's a conflict between them...
Reply
#3

Which conflict would it be?
Do I need to correct this, just do not know how =\
Reply
#4

Someone?
Reply
#5

If you do

pawn Код:
new timer1;
new timer2;

timer1 = SetTimer(...);

KillTimer(timer1);

timer2 = SetTimer(...);
Killing timer 1 will kill timer 2, as they have the same ID.
Reply
#6

Already set them so, more is still killing one of them, is not a fixed timer always dies a different one is never the same.
No updates made in recent days involves settimer.
I use the include Streamer Plugin v 2.6.1, could be a conflict with the same?
Reply
#7

When you kill a timer, do this

pawn Код:
new timer1;

timer1 = SetTimer(...);

KillTimer(timer1);
timer1 = -1;
It'd be a good idea to write a hook/macro for this, which I may do.
Reply
#8

I understand your logic but is still going to be difficult for me, because these timer's are started from OnGameModeInit and are only destroyed in OnGameModeExit, i.e. because they are being destroyed by themselves?
Reply
#9

There is no need to kill timers in OnGameModeExit.
Reply
#10

Even I couldn't understand why my timer's are dying, more I will try to solve this, thanks a lot for your help I am very thankful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)