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



Changing Unknown Command - zrelly - 29.09.2013

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


Re: Changing Unknown Command - Wizzy951 - 29.09.2013

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.


Re: Changing Unknown Command - Patrick - 29.09.2013

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