OnPlayerCommandReceived - 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: OnPlayerCommandReceived (
/showthread.php?tid=596449)
OnPlayerCommandReceived -
TwinkiDaBoss - 18.12.2015
Alright so for some reason this isnt working.Im using Y_Commands and im trying to make simple system to tell the player if they failed with the command name or not. There are no errors or warnings.
PHP код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success) {
if(success != COMMAND_OK) {
SendClientMessage(playerid,COLOR_RED, "{FF0000}ERROR: This command doesn't exists. Type {86C8FF}/commands {FF0000}to see all commands or {86C8FF}/help [command name] {FF0000}to view informations about some command");
return COMMAND_OK;
}
return COMMAND_OK;
}