Countdown for Server
#4

Quote:
Originally Posted by Clive
Посмотреть сообщение
pawn Код:
new Count = 3;
pawn Код:
if(strcmp(cmdtext,"/count",true) == 0)
{
    if(Count < 3) return SendClientMessage(playerid,red,"Countdown is already in progress");
    SetTimer("CountDown",1000,0);
    return 1;
}
pawn Код:
public CountDown()
{
    format(string,sizeof(string),"%d",Count);
    if(Count == 0)
    {
        GameTextForAll("Go go go!",1500,3);
        Count = 3;
    }
    else
    {
        GameTextForAll(string,1500,3);
        Count--;
        SetTimer("CountDown",1000,0);
    }
    return 1;
}
I get the following errors!
warning 235: public function lacks forward declaration (symbol "CountDown")
: error 017: undefined symbol "string"
: error 017: undefined symbol "string"
: error 029: invalid expression, assumed zero
Reply


Messages In This Thread
Countdown for Server - by Marios - 02.01.2011, 08:12
Re: Countdown for Server - by Ironboy - 02.01.2011, 08:14
Re: Countdown for Server - by HyperZ - 02.01.2011, 08:52
Re: Countdown for Server - by Marios - 02.01.2011, 09:19
Re: Countdown for Server - by gangstajoe - 02.01.2011, 09:22
Re: Countdown for Server - by Marios - 02.01.2011, 09:24
Re: Countdown for Server - by Mean - 02.01.2011, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)