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=603931)
Error -
kevi11 - 29.03.2016
PHP код:
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17707) : error 025: function heading differs from prototype
Script of error:
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
Hud(playerid);
/* COLPITO SUL TORACE */
new Float:armatura;
GetPlayerArmour(playerid, armatura);
I did not want to add all the correct script
Re: Error -
zPain - 29.03.2016
The
bodypart parameter was only added in 0.3z. Make sure the version you're using isn't older.
Re: Error -
kevi11 - 29.03.2016
How can I fix
Re: Error -
Mencent - 29.03.2016
Hi!
Look in this file a_samp (/pawno/includes/a_samp) wheather the forward OnPlayerTakeDamage row is the same as this:
PHP код:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
When not you can replace this.
Also you can update your script to the latest version.
(
https://www.sa-mp.com/download.php)
Re: Error -
kevi11 - 29.03.2016
I updated don't go
Re: Error -
Konstantinos - 29.03.2016
Keep in mind that if any include hooks the callback (OnPlayerGiveDamage as well) it will give the error. The most common issue was with YSI library but that depends on your includes.