Setting a timer for clearing animation
#1

I need to set a timer for clearing animation, any idea on how to do this?.

Thank you in advance.
Reply
#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
#3

Thank you CutX, I really appreciate it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)