SA-MP Forums Archive
OnPlayerTakeDamage - 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: OnPlayerTakeDamage - function heading differs from prototype (/showthread.php?tid=498525)



OnPlayerTakeDamage - function heading differs from prototype - Chrillzen - 03.03.2014

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    return 1;
}
pawn Код:
error 025: function heading differs from prototype
When I remove "bodypart" it works. I have 0.3z. When I start up a server it says it has 0.3z and I have re-downloaded it and placed it in the folder numerous times.


Re: OnPlayerTakeDamage - function heading differs from prototype - Sledgehammer - 03.03.2014

Are you using YSI? If so this link will be helpful to you. Hope this works.

Link: https://sampforum.blast.hk/showthread.php?tid=488198


Re: OnPlayerTakeDamage - function heading differs from prototype - Nurgle4 - 03.03.2014

You are using pawno 0.3x pawno and includes go to sa-mp.com and click on 0.3z then replace all of the pawno folder which you have downloaded with your pawno folder because bodypart have been added in 0.3z and remember to update all of the includes you use


Re: OnPlayerTakeDamage - function heading differs from prototype - Sledgehammer - 03.03.2014

His already got the latest update for 0.3z as it says in his description. I heard that YSI has an problem with onplayertakedamage. I think this maybe the problem, thats is if he has YSI.


Re: OnPlayerTakeDamage - function heading differs from prototype - Chrillzen - 03.03.2014

Thanks! I just updated to the latest YSI and it works now.


Re: OnPlayerTakeDamage - function heading differs from prototype - Nurgle4 - 03.03.2014

As i said, i told him that he might missed a file from 0,3z pawno and i told him to update all of the includes he used and one of his includes is YSI so i have solved his problem
So update Ysi and it will work


Re: OnPlayerTakeDamage - function heading differs from prototype - Nurgle4 - 03.03.2014

No reps?