30.01.2015, 21:07
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