OnPlayerTakeDamage Callback 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: OnPlayerTakeDamage Callback error ? (
/showthread.php?tid=612055)
OnPlayerTakeDamage Callback error ? -
YoussefHammad - 13.07.2016
Code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
return 1;
}
error:
Code:
error 025: function heading differs from prototype
any idea whats wrong ??
Re: OnPlayerTakeDamage Callback error ? -
Stinged - 13.07.2016
The 'bodypart' parameter was addedi n 0.3z.
Either update your server package, or remove 'bodypart'.
Re: OnPlayerTakeDamage Callback error ? -
YoussefHammad - 13.07.2016
Thanks, Repped