Код:
[21:39:57] [debug] Run time error 4: "Array index out of bounds"
[21:39:57] [debug] Attempted to read/write array element at index 35 in array of size 35
[21:39:57] [debug] AMX backtrace:
[21:39:57] [debug] #0 004940fc in OpenInventory (playerid=0) at C:\Users\Андрей\Desktop\test\gamemodes\T-M.pwn:42386
[21:39:57] [debug] #1 0032c4e4 in public cmd_test (playerid=0, ... <1 argument>) at C:\Users\Андрей\Desktop\test\gamemodes\T-M.pwn:24133
[21:39:57] [debug] #2 native CallLocalFunction () from samp-server.exe
[21:39:57] [debug] #3 0000c090 in public OnPlayerCommandText (playerid=0, cmdtext[]=@00988dbc "/test") at C:\Users\Андрей\Desktop\test\pawno\include\zcmd.inc:102
42386:
Код:
if(pInfo[playerid][pInvSlot][i] == 0) PlayerTextDrawSetPreviewModel(playerid,inv_SlotsPTD[playerid][i + 1], 19461),PlayerTextDrawSetPreviewRot(playerid, inv_SlotsPTD[playerid][i + 1], 0.000000, 0.000000, 0.000000, 88.000000);
24133:
Код:
OpenInventory(playerid);
В чем проблема?