Advertisement
BlackGuard26

Untitled

Nov 21st, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.36 KB | None | 0 0
  1.  // If success is true show the message Bet successfully placed.
  2.             if (success)
  3.             {
  4.                 if (turn == 1 || turn2 == 1 || turn3 == 1)
  5.                 {
  6.                     MessageBox.Show("Bet successfully placed");
  7.                     btn_race.Enabled = true;
  8.                     if (turn == 1)
  9.                     {
  10.                         turn = 2;
  11.                     }
  12.                     else
  13.                     {
  14.                         if (turn2 == 1)
  15.                         {
  16.                             turn2 = 2;
  17.                         }
  18.                         else
  19.                         {
  20.                  if (turn3 == 1) // Added this.
  21.                  {
  22.                  turn3 =2;
  23.                  }
  24.                         }
  25.                     }
  26.                 }
  27.                 else
  28.                 {
  29.                     //If someone had already made a bet give a message Already placed a bet.
  30.                     if (turn > 1 || turn2 > 1 || turn3 > 1)
  31.                     {
  32.                         MessageBox.Show("Already placed a bet");
  33.                     }
  34.                         //If there is not enough money for the person that is betting show message not enough money
  35.                     else
  36.                     {
  37.                         MessageBox.Show("Not enough money");
  38.                     }
  39.                 }
  40.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement