Custom Error MSG
#1

Hello,

I want to make a custom error message like this:

If player enter /blabla, and if this command doesn't exist,
the server will send:

[Server] This command(/blabla) doesn't exist. Do /cmds for see all commands.

I do:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/test", cmdtext, true, 10) == 0)
    {
        SCM(playerid, COLOR, "It's work!");
        return 1;
    }
        new string[256];
    format(string,sizeof(string),"[Server] This command(%s) doesn't exist. Do /cmds for see all commands.", cmdtext);
    return SCM(playerid, COLOR, string);
}
The server send "SERVER: Unknown command."

What i need to do?
Reply


Messages In This Thread
Custom Error MSG - by theo546 - 19.11.2015, 12:28
Re: Custom Error MSG - by Karan007 - 19.11.2015, 12:32
Re: Custom Error MSG - by theo546 - 19.11.2015, 12:40
Re: Custom Error MSG - by Karan007 - 19.11.2015, 12:45
Re: Custom Error MSG - by theo546 - 19.11.2015, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)