Help SetTimer
#7

Quote:
Originally Posted by nickyW
Посмотреть сообщение
pawn Код:
new CountDownTime = 10; // 10 seconds, countdown
new Timer;
forward Timer(playerid);

public Timer(playerid)
{
     new string[128];
     CountDownTime--;
     if(CountDownTime == 0) {
            KillTimer(Timer);
            CountDownTime= 4;
     } else
     {
           format(string, sizeof(string), "%d", CountDownTime);
           GameTextForPlayer(playerid, string, 1000, 1);
     }
     return 1;
}

Place this there where the timer must to start
Timer = SetTimer("CountDownTime", 1000, false);
not work ingame i'm just type the command to settimer and don't have any text.
PS: have you try to compiler it ?
Reply


Messages In This Thread
Help SetTimer - by xganyx - 06.07.2013, 12:49
Re: Help SetTimer - by Cjgogo - 06.07.2013, 13:11
Re: Help SetTimer - by nickyW - 06.07.2013, 13:12
Re: Help SetTimer - by Cjgogo - 06.07.2013, 13:15
Re: Help SetTimer - by xganyx - 06.07.2013, 14:32
Re: Help SetTimer - by nickyW - 06.07.2013, 14:47
Re: Help SetTimer - by xganyx - 06.07.2013, 15:25
Re: Help SetTimer - by nickyW - 06.07.2013, 15:47
Re: Help SetTimer - by xganyx - 07.07.2013, 01:47
Re: Help SetTimer - by xganyx - 07.07.2013, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)