Warning - 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: Warning (
/showthread.php?tid=492695)
Warning -
TheSnaKe - 04.02.2014
So guys, i have like 9 warnings with the same reason, i will send only 1 warning and the line, if you can help me with this, i will be able to fix the 8 other lines, because it's the same problem with the others.
Code:
Код:
for(new i = 0; i < sizeof(HouseInfo); i++)
{
Warning:
Код:
warning 224: indeterminate array size in "sizeof" expression (symbol "")
Re: Warning -
Borg - 04.02.2014
Can you show your HouseInfo declaration?
Re: Warning -
TheSnaKe - 04.02.2014
Quote:
Originally Posted by Borg
Can you show your HouseInfo declaration?
|
Well here is.
Код:
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if(PlayerInfo[playerid][pPhousekey] == i || PlayerInfo[playerid][pPhousekey2] == i)
{
Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
if(HouseInfo[i][hCustomInterior] == 1)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
SetPVarInt(playerid, "LoadingObjects", 1);
SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
}
SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
PlayerInfo[playerid][pLocal] = i+6000;
PlayerInfo[playerid][pVW] = i+6000;
SetPlayerVirtualWorld(playerid, i+6000);
}
}
Re: Warning -
Borg - 05.02.2014
No, I mean the lines where you define HouseInfo var. i.e. like "new HouseInfo[MAX_HOUSES] = ..."