[HELP] CountDown For Player
#1

It is bugged =/ i can compile it, but nothing happends

pawn Код:
#include <a_samp>

new count;
forward Count(playerid);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/countdown", cmdtext, true, 10) == 0)
    {
        count = SetTimer("Count", 1000, false);
        SendClientMessage(playerid, 0x94FF00FF, "Countdown started");
        return 1;
    }
    return 0;
}
pawn Код:
public Count(playerid)
{
    new counter = 120, string[10];
    counter--;
    format(string, sizeof(string),"~b~%d", counter);
    GameTextForPlayer(playerid, string, 300, 3);
    if(counter == 0)
    {
        format( string, sizeof(string), "~g~2 minutes have passed!!!");
        GameTextForPlayer(playerid, string, 300, 3);
        KillTimer(count);
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 14:38
Re: [HELP] CountDown For Player - by JaTochNietDan - 14.12.2010, 15:08
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 15:24
Re: [HELP] CountDown For Player - by JaTochNietDan - 14.12.2010, 15:25
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 15:28
Re: [HELP] CountDown For Player - by Larsey123IsMe - 14.12.2010, 16:10
Re: [HELP] CountDown For Player - by Nero_3D - 14.12.2010, 16:37
Re: [HELP] CountDown For Player - by XePloiT - 14.12.2010, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)