Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. publics:LoadGangZones()
  2. {
  3. static rows, fields;
  4. cache_get_data(rows, fields);
  5. if(rows)
  6. {
  7. for(new he = 0; he < rows; he++)
  8. {
  9. GangZoneInfo[he][gID] = cache_get_field_content_int(he, "ID");
  10. GangZoneInfo[he][gFraction] = cache_get_field_content_int(he, "Fraction");
  11. GangZoneInfo[he][gLocationminx] = cache_get_field_content_float(he, "Locationminx");
  12. GangZoneInfo[he][gLocationminy] = cache_get_field_content_float(he, "Locationminy");
  13. GangZoneInfo[he][gLocationmaxx] = cache_get_field_content_float(he, "Locationmaxx");
  14. GangZoneInfo[he][gLocationmaxy] = cache_get_field_content_float(he, "Locationmaxy");
  15. GangZoneInfo[he][gCreate] = GangZoneCreate(GangZoneInfo[he][gLocationminx],GangZoneInfo[he][gLocationminy],GangZoneInfo[he][gLocationmaxx],GangZoneInfo[he][gLocationmaxy]);
  16. TotalGangZones++;
  17. }
  18. printf("[MySQL_LOG]: Òåððèòîðèé çàãðóæåíî: %d", TotalGangZones);
  19. }
  20. return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement