Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- publics:LoadGangZones()
- {
- static rows, fields;
- cache_get_data(rows, fields);
- if(rows)
- {
- for(new he = 0; he < rows; he++)
- {
- GangZoneInfo[he][gID] = cache_get_field_content_int(he, "ID");
- GangZoneInfo[he][gFraction] = cache_get_field_content_int(he, "Fraction");
- GangZoneInfo[he][gLocationminx] = cache_get_field_content_float(he, "Locationminx");
- GangZoneInfo[he][gLocationminy] = cache_get_field_content_float(he, "Locationminy");
- GangZoneInfo[he][gLocationmaxx] = cache_get_field_content_float(he, "Locationmaxx");
- GangZoneInfo[he][gLocationmaxy] = cache_get_field_content_float(he, "Locationmaxy");
- GangZoneInfo[he][gCreate] = GangZoneCreate(GangZoneInfo[he][gLocationminx],GangZoneInfo[he][gLocationminy],GangZoneInfo[he][gLocationmaxx],GangZoneInfo[he][gLocationmaxy]);
- TotalGangZones++;
- }
- printf("[MySQL_LOG]: Òåððèòîðèé çàãðóæåíî: %d", TotalGangZones);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement