Error invail cmd - 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: Error invail cmd (
/showthread.php?tid=375830)
Error invail cmd -
CrazyChoco - 08.09.2012
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
Re: Error invail cmd -
[HK]Ryder[AN] - 08.09.2012
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
Re: Error invail cmd -
IceMeteor - 08.09.2012
You cant combine ZCMD and basic OnPlayerCommandText, you have to choose one of them
Re: Error invail cmd -
[HK]Ryder[AN] - 08.09.2012
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.
Re: Error invail cmd -
CrazyChoco - 08.09.2012
Ty, Helped as well deserves a rep :P