Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward LoadTurfs();
- public LoadTurfs()
- {
- turfss = cache_num_rows();
- for(new i = 1; i <= turfss; i++)
- {
- TurfInfo[i][ID] = i;
- TurfInfo[i][Pos][0] = cache_get_field_content_float(i, "minx", handle);
- TurfInfo[i][Pos][1] = cache_get_field_content_float(i, "miny", handle);
- TurfInfo[i][Pos][2] = cache_get_field_content_float(i, "maxx", handle);
- TurfInfo[i][Pos][3] = cache_get_field_content_float(i, "maxy", handle);
- TurfInfo[i][Owned] = cache_get_field_content_int(i, "owned", handle);
- TurfInfo[i][TurfID] = GangZoneCreate(TurfInfo[i][Pos][0],TurfInfo[i][Pos][1],TurfInfo[i][Pos][2],TurfInfo[i][Pos][3]);
- CreateZoneBorders(TurfInfo[i][TurfID]);
- }
- printf("[MYSQL] turfs: %d", turfss);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement