KillTimer doesn't work
#4

Код:
new counter = 4; 
new CountTimer;  

CountTimer = SetTimer("CountDown", 1000, true);  

forward CountDown(); 
public CountDown() 
{ 
        printf("counter = %i", counter); 
        new countstr[64]; 
        if(counter != 0) 
        { 
            format(countstr, sizeof(countstr), "Game starts in: %i", counter); 
            GameTextForAll( countstr, 1000, 4);  
        } 
        else 
        { 
            GameTextForAll("START!", 1000, 4); 
            KillTimer(CountTimer); 
        }
        counter--;
        return 1; 
}
if you using it in any cmd that timer than update counter there 4. before that timer start
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)