defined code that shows undefined
#1

Yo,
I keep get this error
Код:
wcrp\hospital.pwn(60) : error 017: undefined symbol "CheckWounded"
This is the error section
Код:
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;
}
but its defined right here
Код:
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);
	}
}
Reply


Messages In This Thread
defined code that shows undefined - by Tony$$ - 09.06.2015, 15:54
Re: defined code that shows undefined - by Vince - 09.06.2015, 16:00
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 16:02
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 16:26
Re: defined code that shows undefined - by Luis- - 09.06.2015, 16:36
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 16:39
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 17:39
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 18:21
Re: defined code that shows undefined - by Ritzy2K - 09.06.2015, 18:24
Re: defined code that shows undefined - by Tony$$ - 09.06.2015, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)