09.06.2015, 15:54
Yo,
I keep get this error
This is the error section
but its defined right here
I keep get this error
Код:
wcrp\hospital.pwn(60) : error 017: undefined symbol "CheckWounded"
Код:
hospitalOnPlayerSpawn(playerid) { SetPlayerHealthEx(playerid, MAX_HEALTH); if(isInPaintball(playerid)) { paintballRespawn(playerid); DeletePVar(playerid, "PlayerDied"); return 1; } if(GetPVarInt(playerid, "AdminDuty") != 0) { return 1; } if(GetPVarInt(playerid, "PlayerDied") == 1) { if(numMedicsOnline() == 0 || playerDiseaseInstantDeath(playerid)) { CheckWounded(playerid); } if(removeDiseaseOnDeath(playerid)) { curePlayerDisease(playerid); } DeletePVar(playerid, "PlayerDied"); } SetPlayerHealthEx(playerid, 98.0); return 1; }
Код:
CheckWounded(playerid) { if(GetIntVar(playerid, "JustDied") == 1) { PutPlayer(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]); SetInterior(playerid, PlayerInfo[playerid][pInt]); SetWorld(playerid, PlayerInfo[playerid][pWorld]); SetPlayerCameraPos(playerid,PlayerInfo[playerid][pPosX]+3,PlayerInfo[playerid][pPosY]+3,PlayerInfo[playerid][pPosZ]+3); SetPlayerCameraLookAt(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]); SetPlayerHealth(playerid, 1000.0); GiveCash(playerid, -300); SCM(playerid, COLOR_GREY, "You've lost $300 when you died."); SCM(playerid, COLOR_YELLOW, "You are brutally wounded, you may wait for a medic or '/acceptdeath'."); FreezePlayer(playerid); OnAnim{playerid} = true; ApplyAnimation(playerid,"PARACHUTE","FALL_skyDive_DIE",3.5,0,0,0,1,0); } }