Invalid command
#2

for zcmd

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Unknown Command.");
    return 1;
}

and for strcmp use in end of commands

pawn Код:
return 0;
example
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/epr", cmdtext, true) == 0)
    {
       
        SetPlayerPos(playerid, -2660.8555,1425.6328,906.4609);     
        return 1;
    }
    return 0;
}
it will show unknown command automatically.
Reply


Messages In This Thread
Invalid command - by iBots - 21.07.2014, 03:25
Re: Invalid command - by IceBilizard - 21.07.2014, 03:29
Re: Invalid command - by iBots - 21.07.2014, 03:42
Re: Invalid command - by KayJ - 21.07.2014, 03:49
Re: Invalid command - by IceBilizard - 21.07.2014, 03:54
Re: Invalid command - by iBots - 21.07.2014, 03:54
Re: Invalid command - by Scottas - 21.07.2014, 03:56
Re: Invalid command - by iBots - 21.07.2014, 04:03
Re: Invalid command - by Raza2013 - 21.07.2014, 04:08

Forum Jump:


Users browsing this thread: 3 Guest(s)