16.07.2013, 10:05
How can I change "Unknown Command" into
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, 0xFFFFFFFF, "Error...");
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessageEx(playerid, COLOR_WHITE, "SERVER: Unknown command. Please use /help to list all available commands.");
return 1;
}
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;
}