01.03.2015, 16:38
Im trying to make a dialog to select certain coords from a list I made
But I get the error: Array index out of bounds
Код:
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



Thank you all for the help.