Changing Unknown Command
#1

I am using commands like
Код:
CMD:spawnall(playerid,params[]) {;
Theres no onplayercommandtext.
Reply
#2

If I correctly got what you meant my tutorial should help you. Check the Custom unknown command lines.

And actually if your command looks like this the compile will encounter an error.
Reply
#3

There's nothong to explain about this, enjoy!
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) return SendClientMessage(playerid, -1, "Your Error Message here");
    return 1;
}
PS: you must return 1; if you're using ZCMD, because the command will still work but it will show you the error message
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)