YSI Timer and Foreach
#8

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
Timer: was an old version of y_timers...

Now to define a timer, You use: timer FuncName[time](params) { CODE }

And to save its ID for repeating you use:
pawn Код:
new Timer:TimerID;

//Start
TimerID = repeat FuncName(params);

//Stop
stop TimerID;
I've tried to use "timer" but it didn't work. What I'm trying to do is to have a recurring timer. Somehow, using the code below worked for me.
pawn Код:
task TimerName[1000]()
{

}
Reply


Messages In This Thread
YSI Timer and Foreach - by Eyce - 24.12.2014, 22:29
Re: YSI Timer and Foreach - by Eyce - 24.12.2014, 23:49
Re: YSI Timer and Foreach - by Mic_H - 25.12.2014, 00:46
Re: YSI Timer and Foreach - by Eyce - 25.12.2014, 01:48
Re: YSI Timer and Foreach - by Pottus - 25.12.2014, 02:02
Re: YSI Timer and Foreach - by Eyce - 25.12.2014, 02:09
Re: YSI Timer and Foreach - by Ahmad45123 - 25.12.2014, 09:32
Re: YSI Timer and Foreach - by Eyce - 26.12.2014, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)