02.06.2014, 19:14
Hello. I have just updated to YSI 4.0 and I am having this small problem. When I try to compile my script, I get these error messages:
And the lines 5831 and 5844 are:
I fixed that problem by changing in impl.inc:
To
But I don't think these callbacks are being called anymore. I hope you can help me.
Код:
D:\SAMP scripts\FuseGaming Roleplay\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(227) : error 025: function heading differs from prototype D:\SAMP scripts\FuseGaming Roleplay\pawno\include\YSI\..\YSI_Visual\y_commands/impl.inc(228) : error 025: function heading differs from prototype D:\SAMP scripts\FuseGaming Roleplay\gamemodes\FGRP.pwn(5831) : error 025: function heading differs from prototype D:\SAMP scripts\FuseGaming Roleplay\gamemodes\FGRP.pwn(5844) : error 025: function heading differs from prototype
Код:
public OnPlayerCommandReceived(playerid, cmdtext[]) public OnPlayerCommandPerformed(playerid, cmdtext[], success)
Код:
forward e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success); forward e_COMMAND_ERRORS:OnPlayerCommandPerformed(playerid, cmdtext[], e_COMMAND_ERRORS:success);
Код:
forward OnPlayerCommandReceived(playerid, cmdtext[], success); forward OnPlayerCommandPerformed(playerid, cmdtext[], success);