On command process for Y_Commands?
#1

I am now going thru the Y Commands trying to find OnCommandProcess, or OnCommandAttempt or anything related to that, anyone got anything useful? Or should I just make a callback for that myself?

EDIT: I know about OnPlayerCommandPerformed(playerid,cmdtext[],success) but I am looking for something that calls before the command was executed and not after it


EDIT 2:
So far I found
// Forwards for optional command callbacks.
Quote:

forward e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORSuccess);
forward e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid , cmdtext[], e_COMMAND_ERRORSuccess);

Altho hmm, seems that it goes as "headers different from prototype" when I use it as
Quote:

public OnPlayerCommandReceived(playerid, cmdtext[],success)

Reply


Messages In This Thread
On command process for Y_Commands? - by TwinkiDaBoss - 25.11.2016, 01:17
Re: On command process for Y_Commands? - by SickAttack - 25.11.2016, 02:19
Re: On command process for Y_Commands? - by TwinkiDaBoss - 25.11.2016, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)