OnPlayerTakeDamage
#1

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

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

Probleme fixed Thanks 1+ rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)