Unknown Command
#2

at the bottom of OnPlayerCommandText change return 0; to return 1; the will get rid of UNKNOWN COMMAND and then just format a msgs jus above that
pawn Код:
new str[128];
format(str,sizeof(str),"There is no command like your <%s>",cmdtext);
SendCilentMessage(playerid,colour,str);
or
pawn Код:
new str[128];
if(str[0] == /) { //only for commands that start with "/"
format(str,sizeof(str),"There is no command like your <%s>",cmdtext);
SendCilentMessage(playerid,colour,str);
return 1;
}
else return 0; //unknown command
Reply


Messages In This Thread
Unknown Command - by Nonameman - 29.05.2010, 20:04
Re: Unknown Command - by (SF)Noobanatior - 29.05.2010, 20:21
Re: Unknown Command - by Nonameman - 30.05.2010, 08:30
Re: Unknown Command - by Nonameman - 30.05.2010, 09:27
Re: Unknown Command - by oNx - 30.05.2010, 09:30
Re: Unknown Command - by Nonameman - 30.05.2010, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)