undefined symbol
#1

Hey Guys, Do any of you guys know how to fix a undefined symbol.

Everytime I said Compile it says
Код:
 error 017: undefined symbol "Get2DPosZone"
Thanks guys, I will +rep to the people that help me out!
Reply
#2

Is that a function? If it is, show us it's code.
Reply
#3

Код:
	Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House: %d %s", PlayerInfo[iTarget][pHouse], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
		} else if(PlayerInfo[iTarget][pHouse2] != INVALID_HOUSE_ID) {
			new
				szZone[MAX_ZONE_NAME];

			Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House (2): %d %s", PlayerInfo[iTarget][pHouse2], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
This is the only place it is in the script.
Reply
#4

Well that function is not declared anywhere. Where did you get this from?
Reply
#5

Quote:
Originally Posted by CountryTrooper441
Посмотреть сообщение
Код:
	Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House: %d %s", PlayerInfo[iTarget][pHouse], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
		} else if(PlayerInfo[iTarget][pHouse2] != INVALID_HOUSE_ID) {
			new
				szZone[MAX_ZONE_NAME];

			Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House (2): %d %s", PlayerInfo[iTarget][pHouse2], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
This is the only place it is in the script.
the function itself is missing.
these are just the function calls.

futhermore, "Get2DPosZone" is a outdated function
from earlier versions of the "a_zones" include that comes with the server package.
(here's the latest one from 2010)

assuming that it's you'r script, you should know why you still have that one there
and also know what to do. no point in asking us, really.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)