error 025: function heading differs from prototype
#1

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)

Reply
#2

An include could be causing it.
Reply
#3

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)
Reply
#4

its same error
Reply
#5

which includes do you use?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)