SA-MP Forums Archive
OnPlayerTakeDamage(wrong parameter: bodypart) - 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(wrong parameter: bodypart) (/showthread.php?tid=612375)



OnPlayerTakeDamage(wrong parameter: bodypart) - Shaktimaan - 17.07.2016

I have an old problem. When I add bodypart to OnPlayerTakeDamage parameter, it gives me error
Код:
F:\DON'TE~1\GAMEMO~1\wz.pwn(9957) : error 025: function heading differs from prototype
I've already update my server package to 0.3.7, and when I open a_samp.inc include, and search "Onplayertakedamage", it ends up with this
Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
Anyone know what the fuck is going on?


Re: OnPlayerTakeDamage(wrong parameter: bodypart) - Konstantinos - 17.07.2016

Includes that have not been updated. Check which one of them uses OnPlayer Take/Give Damage callbacks and add the parameter.


Re: OnPlayerTakeDamage(wrong parameter: bodypart) - Shaktimaan - 17.07.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Includes that have not been updated. Check which one of them uses OnPlayer Take/Give Damage callbacks and add the parameter.
Yo! bro, Thanks for the help...
I was using an old headshot include to add headshot feature in my script. So now I have just removed it and got what I want.
And btw, you are my favorite.