Some help with countDown
#1

Hi guys i have make this countdown system:
PHP код:
new CountDownVar 15;
new 
CountDownTimer
on my command:
PHP код:
CountDownTimer SetTimer("CountDown" ,1000false); 
PHP код:
forward CountDown(playerid);
public 
CountDown(playerid)
{
 
CountDownVar--;
 new 
str[128];
 if(
CountDownVar == 0)
 {
    
KillTimer(CountDownTimer);
    
CountDownVar 15;
 }
 else
 {
    
GameTextForPlayer(playerid"Count Down: %d"CountDownTimer80001);
    
//format(str, sizeof(str), "Count Down: %d", CountDownTimer);
    //GameTextForPlayer(str, 1000, 1);
 
}
 return 
1;

BUT on game when type the command then i see a gametext which writes: countdown 19 and it still there for some seconds and then disapear!!
whats wrong some help please
Reply


Messages In This Thread
Some help with countDown - by jimis - 19.05.2014, 19:45
Re: Some help with countDown - by TakeiT - 19.05.2014, 19:49
Re: Some help with countDown - by jimis - 19.05.2014, 20:06
Re: Some help with countDown - by Spartaaaaa - 19.05.2014, 20:51
Re: Some help with countDown - by JFF - 20.05.2014, 03:49
Re: Some help with countDown - by jimis - 21.05.2014, 10:34
Re: Some help with countDown - by JFF - 21.05.2014, 10:39
Re: Some help with countDown - by jimis - 21.05.2014, 10:48
Re: Some help with countDown - by jimis - 21.05.2014, 10:54
Re: Some help with countDown - by Konstantinos - 21.05.2014, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)