ZCMD Question
#1

Alright, I am using ZCMD as my current command processor and have noticed that if you type an incorrect command, nothing is said to state such. Is there a way for if an unknown command is entered to state such?

Kind Regards,
Nmader
Reply
#2

nativechecker?
Reply
#3

Do you have return 1; as a value return in the command(s)?
Reply
#4

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
Do you have return 1; as a value return in the command(s)?
Yes, I do.
Reply
#5

type this before return 1;

pawn Код:
//at the very end of the command and before the return value
else
        SendClientMessage(playerid, 0xFFFFFFFF, "blahblah");


    //return 1;
Reply
#6

Wouldn't that only do it for that one command and state all the other commands as unrecognized?
Reply
#7

You must return 1; at all commands if you want them to be recognized.
Reply
#8

DUDE! did i say make it on 1 commdand i just showed u a sample to use apply it to all commands now and dont forget to put it before return 1; and at the end of each command to Let the server know that this was a valid command
Reply
#9

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) {
        SendClientMessage(playerid, -1, "SERVER: Unknown Command");
    }
    return 1;
}
Reply
#10

update your zcmd and sscanf.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)