SA-MP Forums Archive
SERVER: Unknown 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SERVER: Unknown Command (/showthread.php?tid=252811)



SERVER: Unknown Command - Artix - 03.05.2011

How can i change the SERVER: Unknown Command
every time
i will use a command that is Unknown to the server


Re: SERVER: Unknown Command - Backwardsman97 - 03.05.2011

At the bottom of your OnPlayerCommandText callback, change the return 0 to return SendClientMessage...etc.


Re: SERVER: Unknown Command - Georgelopez1 - 03.05.2011

If your using a linux host its because you didn't add the include. Or do what backwardsman said..


Re: SERVER: Unknown Command - Backwardsman97 - 03.05.2011

If it's returning unknown everytime, make sure you have return 0 at the bottom of the OnPlayerCommandText's of all your loaded scripts.


Re: SERVER: Unknown Command - G*Mafia - 03.05.2011

Replace this

pawn Код:
return 0;
With this:

pawn Код:
return SendClientMessage(playerid, COLOR_RED, "Error: Unknown Command - Use /Commands And /Teleports For More Info.");
And change the message to your liking.