Setting a timer for clearing animation
#2

a timer for doing something like this?
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;
}
normal timer:
Код:
SetTimerEx("yourTimer",2000,false,"i",playerid);//starting it
//somewhere outside

forward yourTimer(playerid);
public yourTimer(playerid)
{
ClearAnimations(playerid);
return 1;
}
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
Reply


Messages In This Thread
Setting a timer for clearing animation - by Stanford - 31.07.2013, 15:02
AW: Setting a timer for clearing animation - by CutX - 31.07.2013, 15:10
Re: Setting a timer for clearing animation - by Stanford - 31.07.2013, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)