Count Down fix?
#2

PHP Code:
 new CountDownSecondsCountDownMinutesCountDownTimer
        
CountDownSeconds 60;
        
CountDownMinutes 5;
        
CountDownTimer SetTimer("CountDownTimer"9991); 
forward CountDownTimer();  
public 
CountDownTimer() 

    
CountDownSeconds--;
    if(
CoundDownSeconds == 0)
    {
         
CountDownMinutes--;
         
CountDownSeconds 60;
    }
    new 
string[128]; 
    
format(string128"%d:%d"CountDownMinutesCountDownSeconds); 
    
TextDrawSetString(Text:MissionCountstring); 
    
TextDrawShowForAll(Text:MissionCount); 
    if (
CountDownMinutes == 0
    { 
        
GameTextForAll(""30005);
        
KillTimer(CountDownTimer);
    } 
    return 
1

Would most likely work, didn't tested it tho'.
Reply


Messages In This Thread
Count Down fix? - by Fantje - 09.10.2015, 16:10
Re: Count Down fix? - by thefirestate - 09.10.2015, 16:24
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 16:24
Re: Count Down fix? - by Fantje - 09.10.2015, 16:26
Re: Count Down fix? - by Vince - 09.10.2015, 16:31
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 16:35
Re: Count Down fix? - by Vince - 09.10.2015, 16:51
Re: Count Down fix? - by AbyssMorgan - 09.10.2015, 16:53
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)