<?php include 'queries.php'; $res = $db->GetAll($map5); $markers = markers_vehicle($res, $map);
<?php //$res1 = mysql_query("SELECT profile.name, survivor.* FROM `profile`, `survivor` AS `survivor` WHERE profile.unique_id = survivor.unique_id") or die(mysql_error()); $res1 = mysql_query("SELECT player_data.PlayerName, character_data.* FROM `player_data`, `character_data` WHERE player_data.PlayerUID = character_data.PlayerUID AND character_data.Alive = '1'") or die(mysql_error()); $res2 = mysql_query("SELECT object_data.* FROM `object_data` WHERE object_data.Instance = '" . $serverinstance . "' AND object_data.Damage < '0.95' AND Classname != 'dummy' AND Classname != 'TentStorage' AND Classname != 'Hedgehog_DZ' AND Classname != 'Wire_cat1' AND Classname != 'WoodGate_DZ' AND Classname != 'Sandbag1_DZ' AND Classname != 'Fort_RazorWire' AND Classname != 'VaultStorageLocked' AND Classname != 'TrapBear'") or die(mysql_error()); $res3 = mysql_query("SELECT object_data.* FROM `object_data` WHERE object_data.Instance = '" . $serverinstance . "' AND (Classname = 'dummy' OR Classname = 'TentStorage' OR Classname = 'Hedgehog_DZ' OR Classname = 'Wire_cat1' OR Classname = 'WoodGate_DZ' OR Classname = 'Sandbag1_DZ' OR Classname = 'Fort_RazorWire' OR Classname = 'TrapBear' OR Classname = 'VaultStorageLocked')") or die(mysql_error()); $markers = array(); $markers = array_merge($markers, markers_player($res1, $serverworld)); $markers = array_merge($markers, markers_vehicle($res2, $serverworld)); $markers = array_merge($markers, markers_deployable($res3, $serverworld));
<?php $res = mysql_query("\nSELECT object_data.* FROM `object_data` \nWHERE object_data.Instance = '" . $serverinstance . "' \nAND object_data.Damage < '0.95' \nAND Classname != 'dummy' \nAND Classname != 'TentStorage' \nAND Classname != 'Hedgehog_DZ' \nAND Classname != 'Wire_cat1' \nAND Classname != 'WoodGate_DZ' \nAND Classname != 'Sandbag1_DZ'\nAND Classname != 'Fort_RazorWire'\nAND Classname != 'VaultStorageLocked'\nAND Classname != 'TrapBear'") or die(mysql_error()); $markers = markers_vehicle($res, $serverworld);
<?php include 'queries.php'; $res1 = $db->GetAll($map8_players); $res2 = $db->GetAll($map8_vehicles, $iid); $res3 = $db->GetAll($map8_deployables, $iid); $res4 = $db->GetAll($map8_buildables, $iid); $markers = array(); $markers = array_merge($markers, markers_player($res1, $map)); $markers = array_merge($markers, markers_vehicle($res2, $map)); $markers = array_merge($markers, markers_deployable($res3, $map)); $markers = array_merge($markers, markers_buildable($res4, $map));