18.12.2015, 03:22
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;
}