shape1
shape2
shape3
shape4
shape7
shape8

debug Run time error 4: "Array index out of bounds"


Volkodavik

Новичок
Пользователь
17.04.2017
0
0
0
[17:23:26] [debug] Run time error 4: "Array index out of bounds"
[17:23:26] [debug] Accessing element at index 1 past array upper bound 0
[17:23:26] [debug] AMX backtrace:
[17:23:26] [debug] #0 004d0c44 in public @LoadHouse () at D:\Social RP\gamemodes\Т \MRP.pwn:29921



что делать народ?(((

Код:
   new _c = HouseInfo[idx][hClass], _i = HouseInfo[idx][hInt];
   if(!HouseInfo[idx][hAutoDoors]) HouseInfo[idx][hTextExit] = CreateDynamic3DTextLabel("Выход - {FFFF00}'/exit'\n{FFFFFF}Управление домом - {FFFF00}'/hpanel'", 0xFFFFFFFF, HintsInfo[_c][_i][hiExitX], HintsInfo[_c][_i][hiExitY], HintsInfo[_c][_i][hiExitZ], 6.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, HouseInfo[idx][hID], HintsInfo[_c][_i][hiInt]);

29921   else HouseInfo[idx][hTextExit] = CreateDynamic3DTextLabel("Выход - {FFFF00}'ALT'\n{FFFFFF}Управление домом - {FFFF00}'/hpanel'", 0xFFFFFFFF, HintsInfo[_c][_i][hiExitX], HintsInfo[_c][_i][hiExitY], HintsInfo[_c][_i][hiExitZ], 6.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, HouseInfo[idx][hID], HintsInfo[_c][_i][hiInt]);

   TOTALHOUSE++;
        }

    }
 
Последнее редактирование модератором: