error 025: function heading differs from prototype
#1

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)