Timer won't stop
#1

I am making a countdown, but I cant stop the timer. I tried it with normal timers and y_timers.

PHP код:
new Timer:CountDownID[MAX_PLAYERS];
new 
counter[MAX_PLAYERS]; 
PHP код:
StartCounter()
{
    foreach(
Playersi)
    {
        
counter[i] = 4;
        
CountDownID[i] = repeat CountDown(i);
    }

PHP код:
timer CountDown[1000](playerid)
{
    
SendClientMessage(playerid, -1"timer tick"); // This just keeps going
    
if(counter[playerid] != 0)
    {
        
// counting down
    
}
    else
    {
        
GameTextForPlayer(playerid"~g~START!"10004);
        
stop CountDownID[playerid]; // this wont stop the timer
    
}

Reply


Messages In This Thread
Timer won't stop - by PeanutButter - 18.02.2017, 12:09
Re: Timer won't stop - by Misiur - 18.02.2017, 12:36
Re: Timer won't stop - by PeanutButter - 18.02.2017, 12:52
Re: Timer won't stop - by Shaheen - 18.02.2017, 13:24
Re: Timer won't stop - by PeanutButter - 18.02.2017, 14:09
Re: Timer won't stop - by X337 - 18.02.2017, 14:51
Re: Timer won't stop - by Macronix - 18.02.2017, 14:51
Re: Timer won't stop - by AmigaBlizzard - 18.02.2017, 16:04
Re: Timer won't stop - by PeanutButter - 18.02.2017, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)