jsay
Ученик
Здравствуйте, как перевести данную строку с MYSQL R 33 на MYSQL R 40, я уже не знаю как , пожалуйста помогите .
PHP:
forward LoadGZ();
public LoadGZ()
{
new time = GetTickCount(), rows;
cache_get_row_count(rows);
if(rows)
{
for(new idx = 0; idx < rows; idx++)
{
GZInfo[idx][gID] = cache_get_row_int(idx, 0, mysql_connect_ID); // id
GZInfo[idx][gCoords][0] = cache_get_row_float(idx, 1, mysql_connect_ID); // ginfo1
GZInfo[idx][gCoords][1] = cache_get_row_float(idx, 2, mysql_connect_ID); // ginfo2
GZInfo[idx][gCoords][2] = cache_get_row_float(idx, 3, mysql_connect_ID); // ginfo3
GZInfo[idx][gCoords][3] = cache_get_row_float(idx, 4, mysql_connect_ID); // ginfo4
GZInfo[idx][gFrak] = cache_get_row_int(idx, 5, mysql_connect_ID); // fraction
TOTALGZ++;
GangZone[idx] = GangZoneCreate(GZInfo[idx][gCoords][0],GZInfo[idx][gCoords][1],GZInfo[idx][gCoords][2],GZInfo[idx][gCoords][3]);
ZoneOnBattle[idx] = 0;
GZSafeTime[idx] = 0;
}
}
printf("[Загружено гангзон]: <%i>. Потрачено: <%i ms>.", TOTALGZ, GetTickCount() - time);
return 1;
}
