From df9af2107e3e23354faa1833408efd3e603e689a Mon Sep 17 00:00:00 2001 From: ui0ppk <113091876+ui0ppk@users.noreply.github.com> Date: Wed, 25 Jan 2023 21:10:39 +0200 Subject: [PATCH] 3rd fix and added currency thing.. --- core/classes.php | 7 ++++--- startgit.bat | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 startgit.bat diff --git a/core/classes.php b/core/classes.php index 0f329d2..522fc65 100644 --- a/core/classes.php +++ b/core/classes.php @@ -21,16 +21,17 @@ class PartyStarter { $query->bindParam(':id', $id); $query->execute(); $money = $query->fetch(PDO::FETCH_ASSOC)["money"]; + $currencyIcon = "$"; if ($money < 1000000) { // Anything less than a million - $money = number_format($money); + $money = $currencyIcon.number_format($money); } else if ($money < 1000000000) { // Anything less than a billion - $money = number_format($money / 1000000, 1) . 'M'; + $money = $currencyIcon.number_format($money / 1000000, 1) . 'M'; } else { // At least a billion - $money = number_format($money / 1000000000, 1) . 'B'; + $money = $currencyIcon.number_format($money / 1000000000, 1) . 'B'; } // messy shit sorry mario1 fix it urself :trol: diff --git a/startgit.bat b/startgit.bat new file mode 100644 index 0000000..b4cac09 --- /dev/null +++ b/startgit.bat @@ -0,0 +1 @@ +@cmd \ No newline at end of file