3rd fix and added currency thing..

This commit is contained in:
ui0ppk 2023-01-25 21:10:39 +02:00
parent c3ee098a72
commit df9af2107e
2 changed files with 5 additions and 3 deletions

View File

@ -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:

1
startgit.bat Normal file
View File

@ -0,0 +1 @@
@cmd