SA-MP Forums Archive
error 025: function heading differs from prototype - 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: error 025: function heading differs from prototype (/showthread.php?tid=619193)



error 025: function heading differs from prototype - DevHarden - 15.10.2016

Код:
error 025: function heading differs from prototype
Error has to do with trying to use the bodypart function on
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
Caused by the YSI package and I have went through each "fix" (https://sampforum.blast.hk/showthread.php?tid=488198) that has been proposed on the forums which are out dated with a newer version of YSI (3.1 I believe) that was released and the fixes do not seem to function the same as the files are set up differently and I am unable to figure it out. I'm not sure which code if any to include, I was more hoping somebody ran into this problem and can think of the fix off the top of their head.

Thanks, any help would be appreciated!


Re: error 025: function heading differs from prototype - Mencent - 15.10.2016

Hello.

I don't have any idea of YSI because I never used this. But, maybe this link can help you:
https://sampforum.blast.hk/showthread.php?tid=488198

- EDIT:
Ah, sorry. I didn't see this link..


Re: error 025: function heading differs from prototype - DevHarden - 15.10.2016

I appreciate the reply, But I said in the main topic that thread wasn't useful for me as the files are set up diffrently.
Thanks though buddy.

EDIT:

I got it figured out. My YSI 3.1 I had downloaded wasn't actually YSI 3.1. Not sure how that happened.

@Mencent All good man! I really appreciate you taking time to reply anyways!