Count Down fix?
#8

This works in reverse, it will add time
however display
05:00 04:59 ...

//start CountDownFromAmount = 0, stop 300
PHP Code:
public CountDownTimer(){  //This function must be performed every 1 second
    
CountDownFromAmount++; 
    new 
string[128], timesmintimessek
    
timesmin = ((300-(CountDownFromAmount))/60);
    
timessek = (300-((CountDownFromAmount)+((timesmin)*(60))));
    
format(stringsizeof(string), "%02d:%02d"timesmintimessek); 
    
TextDrawSetString(Text:MissionCountstring); 
    
TextDrawShowForAll(Text:MissionCount); 
    if(
CountDownFromAmount == 300){ 
        
GameTextForAll(""30005); 
    }
    return 
1

Example:
https://www.youtube.com/watch?v=desa4vyIHGs
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)