[00:05:47] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
[00:07:15] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
[00:07:20] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
[00:05:47] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
[00:07:15] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
[00:07:20] [ERROR] "cache_get_data" - invalid connection handle (ID = 0)
По server_log.txt, все территории загружены. На сервере они есть, только на сервере одни БАГИ. Все ТД слетели, со всех организаций по немногу флудит...
Вряд ли это иза загрузки..
И очень интересная проблема, покажи полный mysql_log.txt
Пробуй:
1) Вариант:
2 вариант:PHP код:
publics:LoadGZ()
{
new rows, fields, temp [ 256 ];
cache_get_data (rows, fields, connects) ;
printf("Вариант 1 | Подключение к MySQL: %d", connects);
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;
}
И что выведет в лог нам покажиPHP код:
publics:LoadGZ()
{
new rows, fields, temp [ 256 ];
cache_get_data (rows, fields, connects = 1) ;
printf("Вариант 2 | Подключение к MySQL: %d", connects);
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;
}
Хорошо, попробую отпишу. Суть в том, что если не заливать "БазуДанных", всё отлично работает. Как только заливаешь таблицу на сервере хаос
- - - Добавлено - - -
mysql_log полный выкладываю, больше ничего нету. Жаль DeimoS пропал :-(
mysql_log - теперь чист а вот в server_logPHP код:
9:20:39] [debug] Run time error 4: "Array index out of bounds"
[19:20:39] [debug] Accessing element at index 130 past array upper bound 129
[19:20:39] [debug] AMX backtrace:
[19:20:39] [debug] #0 0000dcf0 in public Itter_OnPlayerConnect (0x00000000) from modik.amx
[19:20:39] [debug] #1 native CallLocalFunction () [080dce40] from samp03svr
[19:20:39] [debug] #2 00007024 in public SSCANF_OnPlayerConnect (0x00000000) from modik.amx
[19:20:39] [debug] #3 native CallLocalFunction () [080dce40] from samp03svr
[19:20:39] [debug] #4 000013ac in public Streamer_OnPlayerConnect (0x00000000) from modik.amx
[19:20:39] [debug] #5 native CallLocalFunction () [080dce40] from samp03svr
[19:20:39] [debug] #6 000009b4 in public OnPlayerConnect (0x00000000) from modik.amx
- - - Добавлено - - -PHP код:
Accessing element at index 130 past array upper bound 129
[19:25:40] Вариант 2 | Подключение к MySQL: 1
PHP код:
[20:02:03] [debug] Run time error 4: "Array index out of bounds"
[20:02:03] [debug] Accessing element at index 130 past array upper bound 129
[20:02:03] [debug] AMX backtrace:
[20:02:03] [debug] #0 000114c4 in public Itter_OnPlayerConnect (playerid=0) at C:\Users\PC\Desktop\капты\modik.pwn:2019
[20:02:03] [debug] #1 native CallLocalFunction () [080dce40] from samp03svr
[20:02:03] [debug] #2 00008020 in public SSCANF_OnPlayerConnect (playerid=0) at C:\Users\PC\Desktop\pawno\include\foreach.inc:610
[20:02:03] [debug] #3 native CallLocalFunction () [080dce40] from samp03svr
[20:02:03] [debug] #4 000016c4 in public Streamer_OnPlayerConnect (playerid=0) at C:\Users\PC\Desktop\pawno\include\sscanf2.inc:114
[20:02:03] [debug] #5 native CallLocalFunction () [080dce40] from samp03svr
[20:02:03] [debug] #6 00000afc in public OnPlayerConnect (playerid=0) at C:\Users\PC\Desktop\pawno\include\streamer.inc:342
Ах, да. Не загружается 130 квадрат.
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)