27.08.2018, 10:49
Ai know fix this error help me with please?
Error:
Code:
Error:
Quote:
./includes/perp.pwn(99081) : error 017: undefined symbol "PLAYER_STATE_ALIVE" ./includes/perp.pwn(99084) : error 017: undefined symbol "PLAYER_STATE_ALIVE" |
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID) { new Float:health; PlayerInfo[playerid][pLastDamagetime] = gettime(); GetPlayerHealth(playerid, health); if(GetPlayerTeam(playerid) != PLAYER_STATE_ALIVE && PlayerInfo[playerid][pDeaths]) SetPlayerHealth(playerid, health); if(GetPlayerTeam(playerid) == PLAYER_STATE_ALIVE) { if(health - amount <= 30.0) { SendClientMessage(playerid, COLOR_LIGHTRED, "-> Suc khoe thap, ky nang ban sung o muc do trung binh."); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 200); SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 200); SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 200); SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 200); SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 200); SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 200); } } } |