Several commands, error ???
#3

sorry for double post but i actually found why, you had a missing bracket and a missing ; semicolon, and other thing, always add return to your command or it will say SERVER: Unknown command

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/skatepark", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703);
        return SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!");
    }
    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
        return SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
    }
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        return SetPlayerHealth(playerid,0.0);
    }
    return 0;
}
Reply


Messages In This Thread
Several commands, error ??? - by Hudgens - 31.10.2010, 14:22
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:24
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:26
Re: Several commands, error ??? - by Hudgens - 31.10.2010, 14:28
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:29
Re: Several commands, error ??? - by Hudgens - 31.10.2010, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)