Several cmds questions
#7

where should i put
Код:
forward countdown(playerid);
public countdown(playerid)
{
    countdown --;
    TogglePlayerControllable(playerid,0);
    new str[10];
    format(str,sizeof(str),"%d",countdown);
    SendClientMessage(playerid,color,str);
    if(countdown == 1)
    {
        SendClientMessage(playerid,colour,"GO GO GO!");
        return 1;
    }
}
I though this shouldnt be in any category, but i get like 5 errors. so...

EDIT: Mike, i tryed ur script and i works just perfect. There were some problems, but i fixed it.
At this script should be *if(stolenthings == 0)*.
Код:
 if(!strcmp("/sell", cmdtext,true))
    {
        if(stolenthings == 0) return SendClientMessage(playerid,0xFF9900AA,"You dont have things to sell.");
        // bla bla bla sendclientmessage things etc... again
     stolenthings = 0;
    }
Whatever, ty.
Reply


Messages In This Thread
Several cmds questions - by nejc001 - 13.09.2010, 18:23
Re: Several cmds questions - by Mike_Peterson - 13.09.2010, 19:55
Re: Several cmds questions - by nejc001 - 14.09.2010, 13:56
Re: Several cmds questions - by nejc001 - 15.09.2010, 08:36
Re: Several cmds questions - by PinkFloydLover - 15.09.2010, 09:07
Re: Several cmds questions - by Mike_Peterson - 15.09.2010, 14:42
Re: Several cmds questions - by nejc001 - 15.09.2010, 15:43
Re: Several cmds questions - by nejc001 - 16.09.2010, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)