Unknow command!
#4

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
At the end of OnPlayerCommandText, use
pawn Код:
return SendClientMessage(playerid, 0xcolor, "SERVER: UNKNOWN COMMAND");
instead of
pawn Код:
return 0;
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
Quote:

// Returning 0 informs the server that the command hasn't been processed by this script.
// OnPlayerCommandText will be called in other scripts until one returns 1.
// If no scripts return 1, the 'SERVER: Unknown Command' message will be shown to the player.

You can do what you said, but there really is no point, it will do it automatically. Unless you want to do a custom message/textdraw/sound whatever.
Reply


Messages In This Thread
[Solved]Unknow command! - by ossukoss - 12.05.2014, 16:33
Re: Unknow command! - by Nathan_Taylor - 12.05.2014, 16:49
Re: Unknow command! - by DiGiTaL_AnGeL - 12.05.2014, 16:51
Re: Unknow command! - by Nathan_Taylor - 12.05.2014, 16:55
Re: Unknow command! - by DiGiTaL_AnGeL - 12.05.2014, 16:59
Re: Unknow command! - by ossukoss - 12.05.2014, 17:16

Forum Jump:


Users browsing this thread: 2 Guest(s)