command works but still 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)
+--- Thread: command works but still unknown command?! (
/showthread.php?tid=439041)
command works but still unknown command?! -
NicholasA - 23.05.2013
http://i.imgur.com/GbUIp4v.png
Why does it do that?
This is my cmd:
Код:
COMMAND:help(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, "------------------------- HELP -------------------------");
SendClientMessage(playerid, COLOR_GREEN, " /commands | /credits | /info ");
SendClientMessage(playerid, COLOR_GREEN, "------------------------- HELP -------------------------");
}
Re: command works but still unknown command?! -
Pottus - 23.05.2013
put return 1; at the end
Re: command works but still unknown command?! -
NicholasA - 23.05.2013
Quote:
Originally Posted by [uL]Pottus
put return 1; at the end
|
Thanks, didnt notice that
Re: command works but still unknown command?! -
radiobizza - 23.05.2013
Replace with this:
PHP код:
COMMAND:help(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, "------------------------- HELP -------------------------");
SendClientMessage(playerid, COLOR_GREEN, " /commands | /credits | /info ");
SendClientMessage(playerid, COLOR_GREEN, "------------------------- HELP -------------------------");
return 1;
}