y_timers not being called again?
#2

Personally, I would recommend using the SetTimerEx function and then forward your timer. This is how you would do what you are wanting to do with SetTimerEx:

Under the defines
pawn Код:
forward PrimaryTick(playerid);
Whatever is executing your command (starting the timer):
pawn Код:
SetTimerEx("PrimaryTick", 1000, false, "i", playerid);//false is if it's repeating, if you wish for it to repeat change it to true
Create a public such as:
pawn Код:
Public PrimaryTick(playerid)
{
          print("Tick is being called");
          return 1;
}
Reply


Messages In This Thread
y_timers not being called again? - by MattSlater - 19.02.2013, 17:35
Re: y_timers not being called again? - by nmader - 19.02.2013, 22:40
Re: y_timers not being called again? - by MattSlater - 20.02.2013, 01:53
Re: y_timers not being called again? - by Scenario - 20.02.2013, 02:45
Re: y_timers not being called again? - by Stylock - 20.02.2013, 08:23
Re: y_timers not being called again? - by MattSlater - 20.02.2013, 15:46
Re: y_timers not being called again? - by MattSlater - 20.02.2013, 21:38
Re: y_timers not being called again? - by MattSlater - 21.02.2013, 14:04
Re: y_timers not being called again? - by MattSlater - 21.02.2013, 14:38
Re: y_timers not being called again? - by MattSlater - 21.02.2013, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)