Two errors
#1

(1817) : error 025: function heading differs from prototype
(1827) : error 025: function heading differs from prototype


PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart//1817
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        if(
GetPVarInt(playerid"aFly") == 1) return 1;
        
PlayerPlaySound(issuerid17802000);
    }
    return 
1;
}
public 
OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponidbodypart//1827
{
    if(
GetPVarInt(damagedid"AdminDuty" ) == && gPlayerInfo[playerid][pAlevel] < 1)
        
GameTextForPlayer(playerid"~r~DON'T SHOOT ADMINS ON DUTY!"100006);
    if(
gPlayerInfo[playerid][pTeam] == gPlayerInfo[damagedid][pTeam] && !IsPlayerInAnyVehicle(playerid) && gPlayerInfo[playerid][pAlevel]< 1)
        
GameTextForPlayer(playerid"~r~Don't shoot your team mates!"9006);
    return 
1;

Reply
#2

Update your default includes, the ones you're currently using are outdated, you can just overwrite the pawn folder with the 0.3z files if you want to. This is because the parameters of this function have been updated.
Reply
#3

you have a old 0.3x or just remove body part

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)