About y_timers
#1

Hello guys, i have a question about y_timers.

I just try to finished a job system but I have a little problem, for 1 month I use y_timers and I don't know how can i define a timer that repet every 1 second, for example i have something like this:

Код:
jobsystem[playerid] = SetTimerEx("ProgressJob", 1000, 1, "i", playerid); // this timer will be called in every 1 second for a playerid
Now, how can i do for y_timers, i try something below but it's called once and after is stop..

Код:
new Timer:jobsystem[MAX_PLAYERS];
jobsystem[playerid] = defer ProgressJob(playerid);

timer ProgressJob[1000](playerid)
{
     //my code
}
If someone can help me with this post here, thanks!
Reply


Messages In This Thread
About y_timers - by None1337 - 01.10.2017, 19:07
Re: About y_timers - by m4karow - 01.10.2017, 19:10
Re: About y_timers - by Dayrion - 01.10.2017, 20:16

Forum Jump:


Users browsing this thread: 2 Guest(s)