Unknown Command
#1

How to remove this:
Код:
SERVER: UNKNOWN COMMAND
And make another manual message ?
Reply
#2

Under OnPlayerCommandText Change the return Value

Example:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 // YOUR COMMANDS UP HERE

return 0; // --> Change return 0 with --> return SendClientMessage(playerid, "Server: Command Doesn't exist!", COLOR);
}
You can change "ServerL Command Doesn't exist!" with whatever error message you want, and you're done
Reply
#3

Use this code
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    new string[128];
    if(!success)
    {
        format(string,sizeof(string),"ERROR: %s is Invalid Command!",cmdtext);
        SendClientMessage(playerid,red,string);
    }
    return 1;
}
Reply
#4

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)