PLS help with TIMER
#1

Does anyone know how i can make thet the timer repeat's like 30 times and stop?
Reply
#2

pawn Код:
Well you can create timer by
new mytimer;
mytimer=SetTimer("funcname", interval,repeating); //if the repeating is true it will repeat again and again

and you can destroy it with mytimer=KillTimer(mytimer);
Reply
#3

thx...but i know thet....

What i mean is

SeTimer(funcname, interval, reapeating) if i set 0 its once if i set true/1 its reapeting always but how i can set it like:

SeTimer(funcname, interval, reapeat 30 times)

i hawe idea to add another timer to kill this timer after the time i want,but if there any way to do this and not create another timer it will bee wery nice
Reply
#4

bump
Reply
#5

nameoftimer = SetTimer("function", time, 1);
Function(){
if has run 30 times kill function
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)