error 025: function heading differs from prototype - 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: error 025: function heading differs from prototype (
/showthread.php?tid=488162)
error 025: function heading differs from prototype -
itsCody - 16.01.2014
Line: public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
I've updated my pawno includes and still won't compile. :/
Anybody else having issues
Re: error 025: function heading differs from prototype -
maramizo - 16.01.2014
Your forward line is mistaken.
Make sure it is like this:
pawn Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart);
Re: error 025: function heading differs from prototype -
itsCody - 16.01.2014
the forward is located in a_samp under pawno/includes so I don't need to forward it into my gamemode?
I've did some reading and apparently YSI is the cause and I'm using zcmd, but thanks!
Re: error 025: function heading differs from prototype -
[TC]XxJuggaloxX - 17.01.2014
I'm not 100% sure as to what this will do however, if you open
pawno > include > YSI > y_hooks > impl.inc
Find public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
should be line 2336.
Comment it out and it should work now. So far I havent noticed anything wrong, and it compiled.
Re: error 025: function heading differs from prototype -
itsCody - 17.01.2014
Quote:
Originally Posted by [TC]XxJuggaloxX
I'm not 100% sure as to what this will do however, if you open
pawno > include > YSI > y_hooks > impl.inc
Find public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
should be line 2336.
Comment it out and it should work now. So far I havent noticed anything wrong, and it compiled.
|
Alrighty, thanks!