From 30c25bcc484d1ad51ef247f3d1d66f3df468d19e Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Wed, 15 Nov 2023 15:52:18 +0100 Subject: [PATCH] more infro individual player --- matchinfo.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/matchinfo.php b/matchinfo.php index 26d160b..85072c7 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -89,6 +89,8 @@ $lastMatches = array_slice($allMatches, 0, 8); Kills humankills Total Damage + Rank + DBNOs "; $directory = 'data/killstats/'; @@ -107,7 +109,9 @@ $lastMatches = array_slice($allMatches, 0, 8); $playerStats = $includedItem['attributes']['stats']; if ($individualPlayerName == $playerStats['name']) { $damageDealt = $playerStats['damageDealt']; - break; // Stop searching once the player is found + $rank = $playerStats['winPlace']; + $DBNOs = $playerStats['DBNOs']; + break; } } } @@ -116,7 +120,9 @@ $lastMatches = array_slice($allMatches, 0, 8); echo "" . htmlspecialchars($individualPlayerName) . ""; echo "" . htmlspecialchars($jsonData_individual_player['stats']['humankills']) . ""; echo "" . htmlspecialchars($jsonData_individual_player['stats']['kills']) . ""; - echo "" . htmlspecialchars($damageDealt) . ""; // Display damageDealt here + echo "" . htmlspecialchars($damageDealt) . ""; + echo "" . htmlspecialchars($rank) . ""; + echo "" . htmlspecialchars($DBNOs) . ""; echo ""; } echo "";