Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. forward LoadTurfs();
  2. public LoadTurfs()
  3. {
  4. turfss = cache_num_rows();
  5. for(new i = 1; i <= turfss; i++)
  6. {
  7. TurfInfo[i][ID] = i;
  8. TurfInfo[i][Pos][0] = cache_get_field_content_float(i, "minx", handle);
  9. TurfInfo[i][Pos][1] = cache_get_field_content_float(i, "miny", handle);
  10. TurfInfo[i][Pos][2] = cache_get_field_content_float(i, "maxx", handle);
  11. TurfInfo[i][Pos][3] = cache_get_field_content_float(i, "maxy", handle);
  12. TurfInfo[i][Owned] = cache_get_field_content_int(i, "owned", handle);
  13.  
  14. TurfInfo[i][TurfID] = GangZoneCreate(TurfInfo[i][Pos][0],TurfInfo[i][Pos][1],TurfInfo[i][Pos][2],TurfInfo[i][Pos][3]);
  15. CreateZoneBorders(TurfInfo[i][TurfID]);
  16. }
  17. printf("[MYSQL] turfs: %d", turfss);
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement