31.07.2013, 15:10
a timer for doing something like this?
well, idk what youre doing but if you need a timer, here
with y_timers:
normal timer:
the more elegant and efficient timer is the first one, as these timers don't overlap. only every 4 times or so, i con't remember correctls :P
well, idk what youre doing but if you need a timer, here
with y_timers:
Код:
defer yourTimer(playerid);//starting the timer //somewhere outside of any public, like a function: timer yourTimer[2000](playerid)//2000 is the time in ms and playerid is the param passed down to the timer { ClearAnimations(playerid); return 1; }
Код:
SetTimerEx("yourTimer",2000,false,"i",playerid);//starting it //somewhere outside forward yourTimer(playerid); public yourTimer(playerid) { ClearAnimations(playerid); return 1; }