OnPlayerTakeDamage - function heading differs from prototype
#1

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

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
Reply
#3

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
Reply
#4

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

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

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

No reps?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)