Countdown
#10

Quote:
Originally Posted by McCarthy
Посмотреть сообщение
Thank you...just one thing

E:\SAMP\gamemodes\FStudios.pwn(14987) : warning 203: symbol is never used: "countdown"
Just delete this line, your script isnt using the variable "countdown": thats why your compiler says this

Quote:
Originally Posted by SmileyForCheat
Посмотреть сообщение
I Get it From SA-MP Forum

pawn Код:
/*---------------------------------
--             :)                --
--                               --
--       Made By V1ceC1ty        --
--     anti countspam by Radi    --
--                               --
--             :)                --
---------------------------------*/




#include <a_samp>

#define COLOR_BLUE 0x0259EAFF

forward One();
forward Two();
forward Three();
forward Four();
forward Five();
forward GoGoGo();
forward countspam2();
new countspam[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/count", cmdtext, true, 10) == 0)
    {
        if(countspam[playerid]==0)
        {
            SetTimer("Five", 1000, 0);
            SetTimer("Four", 2000, 0);
            SetTimer("Three", 3000, 0);
            SetTimer("Two", 4000, 0);
            SetTimer("One", 5000, 0);
            SetTimer("GoGoGo", 6000, 0);
            countspam[playerid]=1;
            SetTimer("countspam2",120000,0);
        }
        else
        {
            SendClientMessage(playerid,COLOR_BLUE, "Please wait before using this Command again.");
        }
        return 1;
    }
    return 0;
}

public Five()
{
    GameTextForAll("~h~~h~~h~5",2000,3);
    return 1;
}

public Four()
{
    GameTextForAll("~h~~h~~h~5~n~~b~4",2000,3);
    return 1;
}

public Three()
{
    GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3",2000,3);
    return 1;
}

public Two()
{
    GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2",2000,3);
    return 1;
}

public One()
{
    GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1",2000,3);
    return 1;
}

public GoGoGo()
{
    GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1~n~~n~~>~~g~GO ~b~GO ~r~GO~y~!~<~",3000,3);
    return 1;
}
Again an un-efficient countdown
Reply


Messages In This Thread
Countdown - by McCarthy - 02.07.2011, 10:55
Re: Countdown - by dLu - 02.07.2011, 11:08
Re: Countdown - by McCarthy - 02.07.2011, 11:19
Re: Countdown - by Jay. - 02.07.2011, 11:22
Re: Countdown - by dLu - 02.07.2011, 11:25
Re: Countdown - by *IsBack - 02.07.2011, 11:27
Re: Countdown - by Wesley221 - 02.07.2011, 11:29
Re: Countdown - by McCarthy - 02.07.2011, 11:42
Re: Countdown - by SmileyForCheat - 02.07.2011, 12:09
Re: Countdown - by Wesley221 - 02.07.2011, 12:16

Forum Jump:


Users browsing this thread: 2 Guest(s)