12.11.2013, 20:09
}
else
{
DeletePVar(playerid, "pPirate");
if(piratestep[6] > 0) piratestep[6]--;
SetPlayerPos(playerid, 1427.0665,-129.3872,23.2147);
SetPlayerHealth(playerid, GetPVarFloat(playerid, "pOldHealth"));
DeletePVar(playerid, "pOldHealth");
}
return 1;
}
I get the error "error 025: function heading differs from prototype" at the "else". Why is this happening and how can I fix this issue?
else
{
DeletePVar(playerid, "pPirate");
if(piratestep[6] > 0) piratestep[6]--;
SetPlayerPos(playerid, 1427.0665,-129.3872,23.2147);
SetPlayerHealth(playerid, GetPVarFloat(playerid, "pOldHealth"));
DeletePVar(playerid, "pOldHealth");
}
return 1;
}
I get the error "error 025: function heading differs from prototype" at the "else". Why is this happening and how can I fix this issue?