Warning
#1

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 "")
Reply
#2

Can you show your HouseInfo declaration?
Reply
#3

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);
				}
                        }
Reply
#4

No, I mean the lines where you define HouseInfo var. i.e. like "new HouseInfo[MAX_HOUSES] = ..."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)