SA-MP Forums Archive
Server:unkown 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: Server:unkown command (/showthread.php?tid=414813)



Server:unkown command - Jack_Ryder - 10.02.2013

Can any one help me when I enter a command not exist it's showen me the text Server:unkown command

How I can remove it

If you can help me please help


Re: Server:unkown command - Jack_Ryder - 10.02.2013

any help?? I will do everything for it


Re: Server:unkown command - batonsa - 10.02.2013

Код:
public OnPlayerCommandText
{
here is where you got your commands
  return 0;
}
Change the return 0; to

return SendClientMessage(playerid, COLOR_RED, "There is no command like this");

If you want to completely remove it, do


return SendClientMessage(playerid, COLOR_RED, "");


Re: Server:unkown command - bensmart469 - 10.02.2013

PHP код:
//under OnPlayerCommandPerformed
    
if(!success)
    {
        return 
0;
    } 



Re: Server:unkown command - Luis- - 10.02.2013

Quote:
Originally Posted by batonsa
Посмотреть сообщение
Код:
public OnPlayerCommandText
{
HERE IS WHERE YOU GOT UR COMMANDS
  return 0;
}
Change the return 0; to

return SendClientMessage(playerid, COLOR_RED, "invalid command, lol");
....

What command processor are you using? ZCMD, DCMD?