SA-MP Forums Archive
Help with this - 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: Help with this (/showthread.php?tid=328129)



Help with this - Jermi - 23.03.2012

Hello, I need to add this
When you write a wrong command it shows you : Unknown Command or something
How can i add it?


Re: Help with this - antonio112 - 23.03.2012

In your "OnPlayerCommandText" callback, return whatever you want to say when you type a wrong command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, -1, "Error: This command doesn't exist."); // Example
}



Re: Help with this - Jermi - 23.03.2012

cool thanks