SERVER: Unknown Command
#1

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#?
Reply
#2

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

no forget onplayercmdtext... just with zcmd
Reply
#4

So be sure you arent missing return 1;
Reply
#5

where?
Reply
#6

At the end of the command, just add return 1;
Reply
#7

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
Reply
#8

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

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

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

heheheh xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)