Countdown timer?
#4

pawn Код:
new TimerCreator;
//callback
new counter = 11;
TimerCreator = SetTimer("CountDown",1000,true);

//callback not.
forward CountDown();
public CountDown()
{
    counter = counter - 1;
    if(counter == -1)
    {
        KillTimer(TimerCreator);
    }
    else GameTextForPlayer(playerid,counter,100,3);
}
EDIT: sorry, some mistake in the previous post. take this
Reply


Messages In This Thread
Countdown timer? - by Lajko1 - 26.07.2014, 15:07
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:37
Re: Countdown timer? - by Lajko1 - 26.07.2014, 15:40
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:45
Re: Countdown timer? - by [KHK]Khalid - 26.07.2014, 15:46
Re: Countdown timer? - by Champ - 26.07.2014, 15:51
Re: Countdown timer? - by NaClchemistryK - 26.07.2014, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)