error 006: must be assigned to an array
#1

pawn Код:
new Float:x, Float:y, Float:z, Msg[128], ZoneMsg[128], HLocation[MAX_ZONE_NAME];
GetPlayerPos(playerid, x, y, z);
hInfo[HouseID][HouseX] = x;
hInfo[HouseID][HouseY] = y;
hInfo[HouseID][HouseZ] = z;
hInfo[HouseID][HouseInterior] = Interior;
hInfo[HouseID][HousePrice] = Price;
GetPlayer2DZone(HouseID, HLocation, MAX_ZONE_NAME);
format(ZoneMsg, sizeof(ZoneMsg), "%s", HLocation);
hInfo[HouseID][HouseLocation] = ZoneMsg;
hInfo[HouseID][Owned] = false;
and I Get this error:
Код:
C:\Users\*******\Desktop\LHF Server\SERVER\gamemodes\LHF.pwn(2461) : error 006: must be assigned to an array
the error line is this one:
hInfo[HouseID][HouseLocation] = ZoneMsg;

plz help me
Reply
#2

pawn Код:
//Change
GetPlayer2DZone(HouseID, HLocation, MAX_ZONE_NAME);
format(ZoneMsg, sizeof(ZoneMsg), "%s", HLocation);
hInfo[HouseID][HouseLocation] = ZoneMsg;
//To
GetPlayer2DZone(HouseID, hInfo[HouseID][HouseLocation], MAX_ZONE_NAME);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)