SA-MP Forums Archive
Error - 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 (/showthread.php?tid=616052)



Error - MrCallum - 30.08.2016

I get:

Quote:

C:\Users\Callum(Gaming)\Desktop\Server\gamemodes\D ebt(14650) : error 025: function heading differs from prototype

For:

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)



Re: Error - SickAttack - 30.08.2016

Update your includes!


Re: Error - MrCallum - 30.08.2016

I've tried it, it's not working!!!


Re: Error - Konstantinos - 30.08.2016

By "includes", SickAttack is not referring only to those that come up with the server package but literally all the includes you use. If some of them have not been updated for a long time, you'll need to manually search and find which includes use OnPlayerTakeDamage callback and add the bodypart parameter yourself.


Re: Error - MrCallum - 30.08.2016

None of my includes use it except YSI which I have updated to 3.1 and a_samp which I have updated and has.


Re: Error - MrCallum - 30.08.2016

Please help.


Re: Error - SickAttack - 30.08.2016

I had the problem before too, it's because of YSI.

https://sampforum.blast.hk/showthread.php?tid=488198


Re: Error - MrCallum - 30.08.2016

I tried that, it does not work for me.


Re: Error - Konstantinos - 31.08.2016

Why don't you simply update to YSI 4?