SA-MP Forums Archive
error command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error command (/showthread.php?tid=408231)



error command - Quadraim - 17.01.2013

how to make it so that it returns a message when you type a command that doesn't exsist?
in zcmd?

+ repping


Re: error command - Norrin - 17.01.2013

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_WHITE, "That command does not exist. You can use /help to see a list of commands.");
    return 1;
}