C
C#14mo ago
Ahmed

❔ ✅ Incorrect use of Round()?

Been trying for a bit now
4 Replies
Ahmed
AhmedOP14mo ago
else if (random_symbol_1 == random_symbol_2 && random_symbol_1 == "Skull" || random_symbol_1 == random_symbol_3 && random_symbol_1 == "Skull" || random_symbol_2 == random_symbol_3 && random_symbol_2 == "Skull")
{
new_balance = new_balance - 1;
//balance = balance + 0.8;
//new_balance = Math.Round(new_balance);
Console.WriteLine("2 skulls! you've just lost £0.5! | New balance : £" + new_balance);
}
else if (random_symbol_1 == random_symbol_2 && random_symbol_1 == "Skull" || random_symbol_1 == random_symbol_3 && random_symbol_1 == "Skull" || random_symbol_2 == random_symbol_3 && random_symbol_2 == "Skull")
{
new_balance = new_balance - 1;
//balance = balance + 0.8;
//new_balance = Math.Round(new_balance);
Console.WriteLine("2 skulls! you've just lost £0.5! | New balance : £" + new_balance);
}
Ahmed
AhmedOP14mo ago
No description
Ahmed
AhmedOP14mo ago
I'm using a tester and i've set all 2/3 rolls to skull, so that's working fine but whenever i get 2 skulls, i tell it to take away 1 from the balance why does it go to -0 found out y nvm !close
Accord
Accord14mo ago
Closed! Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server