OnPlayerTakeDamage(wrong parameter: bodypart)
#1

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?
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)