Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include_once 'connect.php';
- $player_id = '6';
- $result_value = array();
- for ($ix = 1; $ix <= 16; $ix++) {
- $result_value[$ix] = array();
- for ($iy = 1; $iy <= 16; $iy++) {
- $result_value[$ix][$iy] = array();
- }
- }
- $pullMapInfo = "SELECT x, y, z, value FROM mapinfo WHERE id='{$player_id}'";
- $pullMapInfo2 = mysql_query($pullMapInfo) or die(mysql_error());
- $pullMapInfo3 = mysql_fetch_assoc($pullMapInfo2);
- $x = $pullMapInfo3["x"];
- $y = $pullMapInfo3["y"];
- $z = $pullMapInfo3["z"];
- $result_value[$x][$y][$z] = $pullMapInfo3["value"];
- for($iz = 1; $iz <= 3; $iz++){
- echo 'Layer ', $iz, '<br>';
- for($ix = 1; $ix <= 16; $ix++){
- for($iy = 1; $iy <= 16; $iy++){
- $result_value[$x][$y][$z] = $pullMapInfo3["value"];
- echo '<br>';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement