Merge pull request #18 from OpzekerIT/dev

topstats
This commit is contained in:
Lanta 2023-09-21 20:20:32 +02:00 committed by GitHub
commit 9f899e0d85

View file

@ -34,7 +34,7 @@ error_reporting(E_ALL);
</form><br>"; </form><br>";
// Displaying top 10 comparisons for each attribute // Displaying top 10 comparisons for each attribute
$attributes = ['dBNOs', 'damageDealt', 'roadKills', 'teamKills']; $attributes = ['dBNOs', 'damageDealt', 'roadKills', 'teamKills','headshotKills','roundMostKills','kills','wins','top10s'];
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
echo "<h3>Top 10 $attribute</h3>"; echo "<h3>Top 10 $attribute</h3>";
uasort($players_data[$selected_mode], function ($a, $b) use ($attribute) { uasort($players_data[$selected_mode], function ($a, $b) use ($attribute) {