error 006: must be assigned to an array - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 006: must be assigned to an array (
/showthread.php?tid=498637)
error 006: must be assigned to an array -
TheFlyer - 04.03.2014
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
Re: error 006: must be assigned to an array -
Misiur - 04.03.2014
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);