Some help with countDown
#2

pawn Код:
forward CountDown(playerid);
public CountDown(playerid)
{
 CountDownVar--;
 new str[128];
 if(CountDownVar == 0)
 {
    KillTimer(CountDownTimer);
    CountDownVar = 15;
 }
 else
 {
    GameTextForPlayer(playerid, "Count Down: %d", CountDownTimer, 1000, 1);
    //format(str, sizeof(str), "Count Down: %d", CountDownTimer);
    //GameTextForPlayer(str, 1000, 1);
 }
 return 1;
}
pawn Код:
SetTimerEx("CountDown", 1000, true, "i", playerid);
The Playerid isn't defined in yours, your gametext was also set to show for 8 seconds. lemme know if you want all players to see the timer.
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)