Array index out of bounds
#1

Im trying to make a dialog to select certain coords from a list I made


Код:
new Float:InteriorCoords[25][3] = 
{
	{244.41,305.032,999.148}//Small Cottage 1 
	{2218.35,-1076.26,1050.48}//Light Living 1 
etc etc etc


Код:
case 0:
			{
				SetPVarFloat(playerid,"HouseExitX", InteriorCoords[0][1]);
				SetPVarFloat(playerid,"HouseExitY", InteriorCoords[0][2]);
				SetPVarFloat(playerid,"HouseExitZ", InteriorCoords[0][3]);
				SetPVarInt(playerid, "HouseInterior", 1);
			}
			case 1:
			{
				SetPVarFloat(playerid,"HouseExitX", InteriorCoords[1][1]);
				SetPVarFloat(playerid,"HouseExitY", InteriorCoords[1][2]);
				SetPVarFloat(playerid,"HouseExitZ", InteriorCoords[1][3]);
				SetPVarInt(playerid, "HouseInterior", 1);
			}
etc etc etc
But I get the error: Array index out of bounds
Reply


Messages In This Thread
Array index out of bounds - by Glenn332 - 01.03.2015, 16:38
Re: Array index out of bounds - by abyss. - 01.03.2015, 16:47
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 17:01
AW: Array index out of bounds - by Nero_3D - 01.03.2015, 18:05
Re: AW: Array index out of bounds - by Glenn332 - 01.03.2015, 18:58
Re: Array index out of bounds - by ball - 01.03.2015, 19:33
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 20:05
Re: Array index out of bounds - by ball - 01.03.2015, 20:35
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)