- Регистрация
- 19 Апр 2017
- Сообщения
- 45
- Лучшие ответы
- 0
- Репутация
- 0
Ошибка в логе :
[23:33:41] [debug] Run time error 4: "Array index out of bounds"
[23:33:41] [debug] Attempted to read/write array element at index 100 in array of size 100
[23:33:41] [debug] AMX backtrace:
[23:33:41] [debug] #0 00030d70 in public LoadEnters () at C:\Users\acer\Desktop\GVL\gamemodes\game-vl.su.pwn:2353
PHP:
publics: LoadEnters()
{
new time = GetTickCount(),rows[2];
cache_get_data(rows[0],rows[1]);
for(new idx = 1; idx <= rows[0]; idx++)
{
EntersInfo[idx][pID] = cache_get_row_int(idx-1,0, dbHandle); [COLOR="#4B0082"]СТРОКА 2353 [/COLOR]
EntersInfo[idx][pX] = cache_get_row_float(idx-1,1, dbHandle);
EntersInfo[idx][pY] = cache_get_row_float(idx-1,2, dbHandle);
EntersInfo[idx][pZ] = cache_get_row_float(idx-1,3, dbHandle);
EntersInfo[idx][pM] = cache_get_row_int(idx-1,4, dbHandle);
EntersInfo[idx][pT] = cache_get_row_int(idx-1,5, dbHandle);
EntersInfo[idx][pI] = cache_get_row_int(idx-1,6, dbHandle);
EntersInfo[idx][pV] = cache_get_row_int(idx-1,7, dbHandle);
EntersInfo[idx][ptX] = cache_get_row_float(idx-1,8, dbHandle);
EntersInfo[idx][ptY] = cache_get_row_float(idx-1,9, dbHandle);
EntersInfo[idx][ptZ] = cache_get_row_float(idx-1,10, dbHandle);
EntersInfo[idx][ptFa] = cache_get_row_float(idx-1,11, dbHandle);
EntersInfo[idx][ptI] = cache_get_row_int(idx-1,12, dbHandle);
EntersInfo[idx][ptV] = cache_get_row_int(idx-1,13, dbHandle);
cache_get_row(idx-1, 14, EntersInfo[idx][pName], dbHandle, 32);
EntersInfo[idx][pIDM] = cache_get_row_int(idx-1,15, dbHandle);
EntersInfo[idx][pP] = CreatePickup(EntersInfo[idx][pM], 1, EntersInfo[idx][pX], EntersInfo[idx][pY], EntersInfo[idx][pZ],EntersInfo[idx][pV]);
EntersInfo[idx][pText] = CreateDynamic3DTextLabel(EntersInfo[idx][pName], 0x6495EDFF, EntersInfo[idx][pX], EntersInfo[idx][pY], EntersInfo[idx][pZ] + 0.6, 15.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1, EntersInfo[idx][pV], EntersInfo[idx][pI]);
if(EntersInfo[idx][pIDM] != 0) CreateDynamicMapIcon(EntersInfo[idx][pX], EntersInfo[idx][pY],EntersInfo[idx][pZ],EntersInfo[idx][pIDM],0,0, -1, -1,150.0);
TOTALENTERS++;
}
return printf("Загружены входов. Кол-во: %i. Потрачено: %i ms",TOTALENTERS,GetTickCount()-time);
}