error 025: function heading differs from prototype
#1

Line: public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)

I've updated my pawno includes and still won't compile. :/
Anybody else having issues
Reply
#2

Your forward line is mistaken.
Make sure it is like this:
pawn Код:
forward OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart);
Reply
#3

the forward is located in a_samp under pawno/includes so I don't need to forward it into my gamemode?

I've did some reading and apparently YSI is the cause and I'm using zcmd, but thanks!
Reply
#4

I'm not 100% sure as to what this will do however, if you open
pawno > include > YSI > y_hooks > impl.inc
Find public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
should be line 2336.

Comment it out and it should work now. So far I havent noticed anything wrong, and it compiled.
Reply
#5

Quote:
Originally Posted by [TC]XxJuggaloxX
Посмотреть сообщение
I'm not 100% sure as to what this will do however, if you open
pawno > include > YSI > y_hooks > impl.inc
Find public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
should be line 2336.

Comment it out and it should work now. So far I havent noticed anything wrong, and it compiled.
Alrighty, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)