Вырезал капты на mySQL, при запуске мода в server_log.txt пишет " [17:41:14] [Загрузка]: LoadGangZone загружено: 130, за 1 (ms) " . Всё верно 130 квадратов, но... 1 квадрат 130-ый не прогружается на карте . И мод становится не корректным, флудят всякие фун-ии. Ещё есть в server_log.txt
PHP код:
[17:41:33] [debug] Run time error 4: "Array index out of bounds"
[17:41:33] [debug] Accessing element at index 130 past array upper bound 129
[17:41:33] [debug] AMX backtrace:
[17:41:33] [debug] #0 0000dc8c in public Itter_OnPlayerConnect (0x00000000) from edit.amx
[17:41:33] [debug] #1 native CallLocalFunction () [080dce50] from samp03svr
[17:41:33] [debug] #2 00006928 in public SSCANF_OnPlayerConnect (0x00000000) from edit.amx
[17:41:33] [debug] #3 native CallLocalFunction () [080dce50] from samp03svr
[17:41:33] [debug] #4 00000cb0 in public Streamer_OnPlayerConnect (0x00000000) from edit.amx
[17:41:33] [debug] #5 000004b0 in public OnPlayerConnect (0x00000000) from edit.amx
Если удалить с таблицы, одну строчку ( ГЗ ), то всё становится нормально, но одного кв. естественно нету. И при загрузке показывает [Загрузка]: LoadGangZone загружено: 129, за 1 (ms)
PHP код:
publics:LoadGZ()
{
new rows, fields, temp [ 256 ];
cache_get_data ( rows, fields ) ;
new time = GetTickCount();
TOTALGZ = rows;
if(rows)
{
for ( new g; g < TOTALGZ ; g++ )
{
cache_get_row(g, 1, temp),GZInfo[g][gFrakVlad] = strval(temp);
cache_get_row(g, 2, temp), GZInfo[g][gCoords][0] = floatstr(temp);
cache_get_row(g, 3, temp), GZInfo[g][gCoords][1] = floatstr(temp);
cache_get_row(g, 4, temp), GZInfo[g][gCoords][2] = floatstr(temp);
cache_get_row(g, 5, temp), GZInfo[g][gCoords][3] = floatstr(temp);
cache_get_row(g, 6, temp), GZInfo[g][gRespa] = strval(temp);
GZInfo[g][gID] = GangZoneCreate(GZInfo[g][gCoords][0],GZInfo[g][gCoords][1],GZInfo[g][gCoords][2],GZInfo[g][gCoords][3]);
}
}
printf ( "[Загрузка]: LoadGangZone загружено: %d, за %d (ms)", TOTALGZ,GetTickCount()-time ) ;
return 1;
}
Cама таблица http://pastebin.com/yU89gpWU
---------- Post added at 18:30 ---------- Previous post was at 18:04 ----------
Ещё забыл, mysql_log.txt чистый.