Count Down fix?
#1

Hi guys,

I made a count down like 300 seconds ( 5 minutes ) but it shows ingame how many seconds that are left so fom 300 to 0. What I want is that it shows the minutes : seconds e.g. 04:49 . How can I fix it?

My codes:
PHP Code:
 // Counter
        
CountDownFromAmount 300// 5minutes
        
SetTimer("CountDownTimer"9991); 
PHP Code:
new CountDownFromAmount;
                
forward CountDownTimer(); 
PHP Code:
public CountDownTimer()
{
    
CountDownFromAmount--;
    new 
string[128];
    
format(string128"%d"CountDownFromAmount);
    
TextDrawSetString(Text:MissionCountstring);
    
TextDrawShowForAll(Text:MissionCount);
    if (
CountDownFromAmount == 0)
    {
        
GameTextForAll(""30005);
    }
    return 
1;

Peace
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: 1 Guest(s)