SA-MP Forums Archive
need help with error 025 - 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: need help with error 025 (/showthread.php?tid=560844)



need help with error 025 - 1fret - 30.01.2015

this is the only line with onplayertakedamage so dont say i duplicate a line.
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        SetPlayerHealth(playerid, 0.0);
        new String[128], victimName[MAX_PLAYER_NAME], attackerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, victimName, sizeof (victimName));
        GetPlayerName(issuerid, attackerName, sizeof (attackerName));
        IncreaseWantedLevel(issuerid,4);

        format(String,sizeof(String),"[POLICE RADIO] Suspect %s is wanted for murdering %s and is Harmed and Dangerours proceed with caution.",victimName,attackerName);
        SendClientMessageToAllCops(String);

       
    }
    return 1;
}
pawn Код:
C:\Documents and Settings\NADINE.HOME-C13C86E48E\Desktop\New Folder\sampserver 2\gamemodes\CNR.pwn(5775) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase



Re: need help with error 025 - Schneider - 30.01.2015

You have to update your includes. The bodypart-parameter was added in 0.3z. Your includes are older.