YCMD optional commands callbacks.
#1

Just as I updated my YSI version to the newest, when compiling, I get those errors:

pawn Код:
pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(227) : error 025: function heading differs from prototype
pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(228) : error 025: function heading differs from prototype
rcrp_main.pwn(123) : error 025: function heading differs from prototype
rcrp_main.pwn(133) : error 025: function heading differs from prototype
Lines:

pawn Код:
public OnPlayerCommandReceived (playerid, cmdtext[])

public OnPlayerCommandPerformed (playerid, cmdtext[], success)
I dunno what's wrong with it, it was working with an older version though.

Thanks for any help.
Reply
#2

pawn Код:
forward e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success);
forward e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid, cmdtext[], e_COMMAND_ERRORS:success);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)