Problem with YCMD - 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: Problem with YCMD (
/showthread.php?tid=371953)
Problem with YCMD -
Shetch - 25.08.2012
I just tried using YCMD, but it always shows me the "SERVER: Unknown command" message?
Here's my code.
Код:
CMD:command(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, "INFO: Successfull message!");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
How can I make it show a custom message like "ERROR: Unknown server command" when a command does not exist?
Re: Problem with YCMD -
Shetch - 25.08.2012
No need, I fixed it.