[HELP]timers with number of repeats (not true or false)
#4

Quote:
Originally Posted by Y_Less
View Post
Unfortunately not yet (it's something I've been thinking about).

If you know that a timer will only be called from one place, and there will only be one of them at once (not easy if you have timers per-player) you can do:

pawn Code:
public MyTimer(params)
{
    static count;
    ++count;
    if (count == 10)
    {
        KillTimer(gThisTimer);
    }
}
thanks guys
and Y_Less: add this functionality in Y_Timers! It would be very useful!
Reply


Messages In This Thread
[HELP]timers with number of repeats (not true or false) - by vpontin - 27.07.2011, 06:58
Re: [HELP]timers with number of repeats (not true or false) - by MyLife - 27.07.2011, 07:06
Re: [HELP]timers with number of repeats (not true or false) - by (SF)Noobanatior - 27.07.2011, 09:48
Re: [HELP]timers with number of repeats (not true or false) - by vpontin - 27.07.2011, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)