SA-MP Forums Archive
YCMD optional commands callbacks. - 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: YCMD optional commands callbacks. (/showthread.php?tid=533146)



YCMD optional commands callbacks. - h4Xz0R - 22.08.2014

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.


Re: YCMD optional commands callbacks. - iFarbod - 23.08.2014

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