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



OnPlayerTakeDamage - Clavier911 - 17.02.2014

Hello all

I have probleme and sorry for my english

C:\Users\Yamaha\Desktop\Counter Strike 0.3z\gamemodes\cs.pwn(1047) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




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


How to make for fix the probleme ?


Re: OnPlayerTakeDamage - JJB562 - 17.02.2014

Make sure you have updated your server includes to 0.3z. One of the main reasons for this error is because of the use of an outdated YSI. So if you are using any YSI libraries make sure to download the latest includes from here:
https://sampforum.blast.hk/showthread.php?tid=321092

If you are still experiencing these problems, check if any of your other includes use OnPlayerTakeDamage, and revise it to the newest parameters.


Re : OnPlayerTakeDamage - Clavier911 - 17.02.2014

Probleme fixed Thanks 1+ rep