SA-MP Forums Archive
SERVER: 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: SERVER: Unknown Command (/showthread.php?tid=456274)



SERVER: Unknown Command - DarrenReeder - 05.08.2013

I am hhaving trouble changing the "server: unkknonwn command" when you type the wrong command in. I have searched the forum and tried the onplayercommandrecieve and with return on onplayercommandtext...

I an using zcmd, any ideas on how i do this#?


Re: SERVER: Unknown Command - dEcooR - 05.08.2013

I dont understand you,you are using zcmd and public Onplayercmdtext? or ?


Re: SERVER: Unknown Command - DarrenReeder - 05.08.2013

no forget onplayercmdtext... just with zcmd


Re: SERVER: Unknown Command - dEcooR - 05.08.2013

So be sure you arent missing return 1;


Re: SERVER: Unknown Command - DarrenReeder - 05.08.2013

where?


Re : SERVER: Unknown Command - Garwan50 - 05.08.2013

At the end of the command, just add return 1;


Re: SERVER: Unknown Command - DarrenReeder - 05.08.2013

I am trying to change the default "Unknown Command" text. so instead it will say something like "That command doesnt exist... try using /help" or something


Re: SERVER: Unknown Command - RajatPawar - 05.08.2013

pawn Код:
#define error_message "Sorry, unknown command."

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
      if( !success )
      {
           return SendClientMessage(playerid, -1, error_message );
       }
       else return 1;
}



Re: SERVER: Unknown Command - dEcooR - 05.08.2013

Oh sooo lol so realy i didnt understand u now u got it..


Re: SERVER: Unknown Command - Xtream - 05.08.2013

heheheh xD