Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // If success is true show the message Bet successfully placed.
- if (success)
- {
- if (turn == 1 || turn2 == 1 || turn3 == 1)
- {
- MessageBox.Show("Bet successfully placed");
- btn_race.Enabled = true;
- if (turn == 1)
- {
- turn = 2;
- }
- else
- {
- if (turn2 == 1)
- {
- turn2 = 2;
- }
- else
- {
- if (turn3 == 1) // Added this.
- {
- turn3 =2;
- }
- }
- }
- }
- else
- {
- //If someone had already made a bet give a message Already placed a bet.
- if (turn > 1 || turn2 > 1 || turn3 > 1)
- {
- MessageBox.Show("Already placed a bet");
- }
- //If there is not enough money for the person that is betting show message not enough money
- else
- {
- MessageBox.Show("Not enough money");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement