KillTimer doesn't work
#1

I'm trying to make a countdown timer but for some reason the timer won't stop.

PHP код:
new counter 4;
new 
CountTimer
PHP код:
CountTimer SetTimer("CountDown"1000true); 
PHP код:
forward CountDown();
public 
CountDown()
{
    foreach(
Joinersi)
    {
        
printf("counter = %i"counter);
        new 
countstr[128];
        if(
counter != 0)
        {
            
format(countstrsizeof(countstr), "Game starts in: %i"counter);
            
GameTextForPlayer(icountstr10004);
            
counter--;
        }
        else
        {
            
GameTextForPlayer(i"START!"10004);
            
KillTimer(CountTimer);
        }
    }
    return 
1;

The timer doesn't stop and just keeps printing 0
Reply


Messages In This Thread
KillTimer doesn't work - by PeanutButter - 22.01.2017, 17:29
Re: KillTimer doesn't work - by Stones - 22.01.2017, 20:30
Re: KillTimer doesn't work - by PeanutButter - 23.01.2017, 18:10
Re: KillTimer doesn't work - by MBilal - 23.01.2017, 19:22
Re: KillTimer doesn't work - by PeanutButter - 23.01.2017, 20:17

Forum Jump:


Users browsing this thread: 2 Guest(s)