OnPlayerCommandPerformed
#3

Because !success means the command returned 0, and you probably return 1
https://github.com/Misiur/YSI-Includes/issues/5
And you need to use `e_COMMAND_ERRORS:OnPlayerCommandReceived` instead


To catch any unsuccessful command
Код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
    if (success != COMMAND_OK) {
        printf("The command was not successful for player %d", playerid);
        return success;
    }
    return COMMAND_OK;
}
Reply


Messages In This Thread
OnPlayerCommandPerformed - by EmpireSk - 06.12.2017, 11:15
Re: OnPlayerCommandPerformed - by Pizzy - 06.12.2017, 16:57
Re: OnPlayerCommandPerformed - by Kaperstone - 06.12.2017, 17:02
Re: OnPlayerCommandPerformed - by Meller - 06.12.2017, 17:09
Re: OnPlayerCommandPerformed - by EmpireSk - 06.12.2017, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)