SHARE
TWEET

Untitled

a guest Nov 21st, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. forward load_gz();
  2. public load_gz()
  3. {
  4.     new rows;
  5.     cache_get_row_count(rows);
  6.     if(rows)
  7.     {
  8.         for(new i = 1; i <= rows; i++)
  9.         {
  10.             cache_get_value_name_int(i-1, "id", gangzone_Info[i][gID]);
  11.             cache_get_value_name_float(i-1, "zone_x", gangzone_Info[i][gCoords][0]);
  12.             cache_get_value_name_float(i-1, "zone_y", gangzone_Info[i][gCoords][1]);
  13.             cache_get_value_name_float(i-1, "zone_xM", gangzone_Info[i][gCoords][2]);
  14.             cache_get_value_name_float(i-1, "zone_yM", gangzone_Info[i][gCoords][3]);
  15.             cache_get_value_name_int(i-1, "fraction", gangzone_Info[i][gang_terr]);
  16.             totalgz++;
  17.             GangZone[i] = GangZoneCreate(gangzone_Info[i][gCoords][0],gangzone_Info[i][gCoords][1],gangzone_Info[i][gCoords][2],gangzone_Info[i][gCoords][3]);
  18.             ZoneOnBattle[i] = 0;
  19.             GZSafeTime[i] = 0;
  20.         }
  21.     }
  22.     printf("gangzone загружено: %d", totalgz);
  23.     return 1;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top