Speeded up timers?
#1

I have a looping timer ( SetTimerEx("Payday", 100000, true, "d", playerid); ) that is set to go off every 100 seconds, as you can see.

However, sometimes, it goes a lot faster, like every 10 seconds or so.

What might be causing this?

I am sure I have ( return 1; ) in the public function.
Reply
#2

is there another timer at all that may be getting called?
and also could you post the function the timer is in and the payday function please
Reply
#3

Is There another timer receiving calls? Put the code ..
Reply
#4

There's no other timer recieving calls, and what code would you like to see?

I've already shown you what starts the timer, and the public ( public Payday(playerid) ) does not include any timers of any kind.
Reply
#5

Payday code please.
Reply
#6

Where did you put this SetTimer? Show CallBack PayDay.

Try change:
pawn Код:
SetTimerEx("Payday", 100000, true, "d", playerid);
to

pawn Код:
SetTimerEx("Payday", 100000, false, "d", playerid)
_

You should be calling him again.
Try changing also the name of the callback Payday for Payday2, it is possible that another script is calling
Reply
#7

What you stated will make the timer be called only once.
The timer is started OnDialogResponse from a dialog created in OnPlayerConnect.
Reply
#8

Quote:

What you stated will make the timer be called only once.
The timer is started OnDialogResponse from a dialog created in OnPlayerConnect.

Okay, Exactly.

Try to remove the SetTimerEx on OnPlayerDialog.

And put in the OnGameModeInit:
pawn Код:
SetTimer("Payday", 100000, true);
(you may have put loop players in Payday Callback)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)