donik98_98
Ученик
PHP:
[WARNING] cache_get_data - no active cache
PHP:
void LoadGangZones()
{
new rows,fields,time = GetTickCount();
cache_get_data(rows,fields);
if(!rows) return print(" Error In Loading GangZones.");
for(new g = 0; g < rows; g++){
gz_c ++;
GZInfo[g][gCoords][0] = cache_get_field_content_float(g, "gCoords1");
GZInfo[g][gCoords][1] = cache_get_field_content_float(g, "gCoords2");
GZInfo[g][gCoords][2] = cache_get_field_content_float(g, "gCoords3");
GZInfo[g][gCoords][3] = cache_get_field_content_float(g, "gCoords4");
GZInfo[g][gFrakVlad] = cache_get_field_content_int(g, "gFrakVlad");
if(GZInfo[g][gFrakVlad] == 0) GZInfo[g][gFrakVlad] = allowedfactions[random(sizeof(allowedfactions))];
GZInfo[g][gID] = GangZoneCreate(GZInfo[g][gCoords][0],GZInfo[g][gCoords][1],GZInfo[g][gCoords][2],GZInfo[g][gCoords][3]);
ZoneOnBattle[g] = 0;
GZSafeTime[g] = 0;
}
printf(" Load GangZones: %d (ms: %d)",gz_c,GetTickCount() - time);
return 1;
}
