01.10.2017, 19:07
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:
Now, how can i do for y_timers, i try something below but it's called once and after is stop..
If someone can help me with this post here, thanks!
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
Код:
new Timer:jobsystem[MAX_PLAYERS]; jobsystem[playerid] = defer ProgressJob(playerid); timer ProgressJob[1000](playerid) { //my code }