Change: "Unknown Command"
#1

How can I change "Unknown Command" into
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, 0xFFFFFFFF, "Error...");
    return 1;
}
Reply
#3

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessageEx(playerid, COLOR_WHITE, "SERVER: Unknown command. Please use /help to list all available commands.");
    return 1;
}
Edit : to slow =(
Reply
#4

If you want it just like that like the one you showed us, it's this:
pawn Код:
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
public OnPlayerCommandPerformed(playerid, cmdtext[]), success)
{
    if(!success) return SendClientMessage(playerid, -1, "{F20A0A}Error: {FFFFFF}That command doesn't exist, type /help for a list of commands.");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)