About y_timers
#3

Quote:
Originally Posted by m4karow
Посмотреть сообщение
if i remember well, use repeat instead defer
Yes and use "stop" to stop the timer.

repeat
This calls the timer repeatedly after the delay defined on the timer. This is similar to tasks but you can stop the timer again:

Код:
main()
{
    repeat DelayedFunction(42);
    new
        Timer:x = repeat DelayedFunction(42);
    stop x;
}
Reply


Messages In This Thread
About y_timers - by None1337 - 01.10.2017, 19:07
Re: About y_timers - by m4karow - 01.10.2017, 19:10
Re: About y_timers - by Dayrion - 01.10.2017, 20:16

Forum Jump:


Users browsing this thread: 2 Guest(s)