Question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question (
/showthread.php?tid=193305)
Question -
Rokzlive - 25.11.2010
On my server when i enter an invalid command it says SERVER: Unknown Command, how do i change it to say in red
ERROR: Wrong Command (/cmds)
Re: Question -
ExeC - 25.11.2010
At the end of OnPlayerCommandText, change
return 1;
to:
pawn Код:
return SendClientMessage(playerid, COLOR, "ERROR: Wrong Command (/cmds)");
Re: Question -
Jeffry - 25.11.2010
Open your GameMode, and change the
return 0; to:
return SendClientMessage(playerid, COLOR_RED, "ERROR: Wrong Command (/cmds)");
EDIT: ExeC: It is the
return 0; not
return 1;