29.05.2015, 21:13
I'm getting this weird error:
This is the whole code around that line:
I honestly don't see what's wrong.
pawn Код:
error 029: invalid expression, assumed zero
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
if((0 <= weaponid <= 46 || weaponid == 54)
{ //This is the line the error's on.
if(BODY_PART_TORSO <= bodypart <= BODY_PART_HEAD) Damage[playerid][(bodypart - 3)][weaponid]++;
}
if (PlayerData[playerid][pFirstAid])
{
SendClientMessage(playerid, COLOR_LIGHTRED, "[WARNING]:{FFFFFF} Your first aid kit is no longer in effect as you took damage.");
PlayerData[playerid][pFirstAid] = 0;
KillTimer(PlayerData[playerid][pAidTimer]);
}
if(actmarker[issuerid] >= 1)
{
TextDrawShowForPlayer(issuerid, HitMarker);
timarker = SetTimerEx("HTD", 250, true, "%d", issuerid);
PlayerPlaySound(issuerid, 1057, 0, 0, 0);
}
return 1;
}