error 025: function heading differs from prototype - 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 025: function heading differs from prototype (
/showthread.php?tid=663366)
error 025: function heading differs from prototype -
p3p4 - 29.01.2019
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(IsPlayerConnected(playerid))
{
new
id, Float: pHP, Float: pArm;
GetPlayerHealth(playerid, pHP);
GetPlayerArmour(playerid, pArm);
for(new i = 0; i < MAX_DAMAGES; i++)
{
if(!DamageInfo[playerid][i][dmgDamage])
{
id = i;
break;
}
}
|
"error 025: function heading differs from prototype" error on this line
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
|
Re: error 025: function heading differs from prototype -
Lokii - 29.01.2019
An include could be causing it.
Re: error 025: function heading differs from prototype -
serqq - 29.01.2019
First of all, indent your code because it's ugly and unreadable.
Second, your error is here:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
Change it to:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
Re: error 025: function heading differs from prototype -
p3p4 - 29.01.2019
its same error
Re: error 025: function heading differs from prototype -
Lokii - 29.01.2019
which includes do you use?