SA-MP Forums Archive
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=603216)



error 025: function heading differs from prototype - ZToPMaN - 20.03.2016

Hey, I was tring to use OnPlayerTakeDamage .
But, It didn't work because this error in the title.
I also, tried to search alot and found a fix way, but it didn't work.
Help.



Re: error 025: function heading differs from prototype - xTURBOx - 20.03.2016

Find:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
Change to:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)



Re: error 025: function heading differs from prototype - itsCody - 20.03.2016

Are you using Y_INI?
If so, take a look at this.
https://sampforum.blast.hk/showthread.php?tid=488198


Re: error 025: function heading differs from prototype - ZToPMaN - 20.03.2016

LOL, when i changed it from
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
to
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
worked fine, Also i wanted to use the second part!
Thanks +REP for both,