06.12.2013, 09:17
It looks like OnPlayerTakeDamage is failing to work or return any value.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID) { format(gString, sizeof(gString), "{aa0000}- %d HP", amount); PlayerDamage[playerid] = Create3DTextLabel(gString, 0xFFFFFFFF, 0.0, 0.0, 0.0, 7.5, -1); Attach3DTextLabelToPlayer(PlayerDamage[playerid], playerid, 0.0, 0.0, 0.4); SetTimerEx("RemoveDamageLabel", 3000, false, "d", playerid); } return 1; }