Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $minx = $welcomex - ($height/$resolution/2);
  2.     $maxx = $minx + ($height/$resolution);
  3.     $lowx = $minx*256;
  4.     $highx = $maxx*256;
  5.     $miny = $welcomey - ($height/$resolution/2);
  6.     $maxy = $miny + ($height/$resolution);
  7.     $lowy = $miny*256;
  8.     $highy = $maxy*256;
  9.     $result = mysql_query("select regionName,cast(locX/256 as unsigned),cast(locY/256 as unsigned),serverURI from regions where locX >= $lowx and locY >= $lowy and locX <= $highx and locY <= $highy order by RegionName" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement