Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward load_gz();
- public load_gz()
- {
- new rows;
- cache_get_row_count(rows);
- if(rows)
- {
- for(new i = 1; i <= rows; i++)
- {
- cache_get_value_name_int(i-1, "id", gangzone_Info[i][gID]);
- cache_get_value_name_float(i-1, "zone_x", gangzone_Info[i][gCoords][0]);
- cache_get_value_name_float(i-1, "zone_y", gangzone_Info[i][gCoords][1]);
- cache_get_value_name_float(i-1, "zone_xM", gangzone_Info[i][gCoords][2]);
- cache_get_value_name_float(i-1, "zone_yM", gangzone_Info[i][gCoords][3]);
- cache_get_value_name_int(i-1, "fraction", gangzone_Info[i][gang_terr]);
- totalgz++;
- GangZone[i] = GangZoneCreate(gangzone_Info[i][gCoords][0],gangzone_Info[i][gCoords][1],gangzone_Info[i][gCoords][2],gangzone_Info[i][gCoords][3]);
- ZoneOnBattle[i] = 0;
- GZSafeTime[i] = 0;
- }
- }
- printf("gangzone загружено: %d", totalgz);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement