Countdown problems
#1

pawn Код:
dcmd_timer(playerid,params[])
{
    #pragma unused params
    cd1 = 6;
    SetTimerEx("CdCd",100,0,"i",playerid);
    return 1;
}
forward CdCd(playerid);
public CdCd(playerid)
{
    cd1--;
    if(cd1 == 0)
    {
        GameTextForPlayer(playerid,"Go!",1500,6);
    }
    if(cd1 >= 1)
    {
        new string[256];
        format(string,sizeof(string),"%i",cd1);
        GameTextForPlayer(playerid,string,1000,6);
        check();
    }
}
forward check();
public check()
{
    SetTimer("CdCd",1000,0);
}
thats my countdown code.. which shows countdown only for the person who is doing it...


but the problem is , when i plugin the FS in my gamemode, the first time a command /timer . the number 5 appears for a second and goes away , but when i do this the second time.. the countdown works properly
Reply


Messages In This Thread
Countdown problems - by spd_sahil - 10.04.2012, 06:14
Re: Countdown problems - by DarkScripter - 10.04.2012, 06:48
Re: Countdown problems - by Knight_Rider - 10.04.2012, 06:54

Forum Jump:


Users browsing this thread: 1 Guest(s)