Error invail cmd
#1

Hello, as i were converting all my cmds to zcmd, i got soo many so i dont bother to do it like when he types /asdasd and it's not in server, it will show, him this message {FF0000}This is an invaild command.
but i can't figure out how to, cause i always get the SERVER: Unknown Command
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new string[70];
        format(string, sizeof(string), "Error: {FFFFFF}The command '%s' was not recognised, please type /help.", cmdtext);
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}
rep+ me if this helped
Reply
#3

You cant combine ZCMD and basic OnPlayerCommandText, you have to choose one of them
Reply
#4

Quote:
Originally Posted by IceMeteor
Посмотреть сообщение
You cant combine ZCMD and basic OnPlayerCommandText, you have to choose one of them
I know that. but this is NOT OnPlayerCommandText
this is OnPlayerCommandPerformed and this works with all cmd processors.
Reply
#5

Ty, Helped as well deserves a rep :P
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)