command works but still unknown command?!
#1

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 -------------------------");
}
Reply
#2

put return 1; at the end
Reply
#3

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
put return 1; at the end
Thanks, didnt notice that
Reply
#4

Replace with this:
PHP код:
COMMAND:help(playeridparams[])
{
    
SendClientMessage(playeridCOLOR_GREEN"------------------------- HELP -------------------------");
    
SendClientMessage(playeridCOLOR_GREEN"             /commands | /credits | /info                ");
    
SendClientMessage(playeridCOLOR_GREEN"------------------------- HELP -------------------------");
        return 
1;

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)