sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in info entry', '', __LINE__, __FILE__, $sql); } $betinfo = mysql_fetch_array($result); $spoons = $betinfo['user_spoons']; $Bet = floatval($Bet); $amount = floatval($amount); ?> $spoons) { message_die(GENERAL_MESSAGE, "You do not have that many $poons!"); } else if ($Bet < 1) { message_die(GENERAL_MESSAGE, "You must bet at least 1 $poon"); } else { if ($number <= 0) { message_die(GENERAL_MESSAGE, "You did not choose a number or you chose an un-used number!"); } else if ($number > 10) { message_die(GENERAL_MESSAGE, "You chose an un-used number!"); } else { ?> $spoons) { message_die(GENERAL_MESSAGE, "You do not have that many $poons"); } else if ($amount < 1) { message_die(GENERAL_MESSAGE, "You must bet at least 1 $poon"); } else { //ALL in row! if (($row1 == $row2) && ($row2 == $row3)) { $newspoons = $amount * 6; $allspoons = $newspoons + $spoons; ?> sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in NNET entry', '', __LINE__, __FILE__, $sql); } } //TWO the same else if ($row1 == $row2 || $row1 == $row3 || $row2 == $row3) { $newspoons = $amount * 1; $allspoons = $newspoons + $spoons; ?> sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in info entry', '', __LINE__, __FILE__, $sql); } } //None the same! else { $lostspoons = ($amount * 1); ?> sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in info entry', '', __LINE__, __FILE__, $sql); } } } } //END Pokies ?>
:: Gamble Center ::
  Rooms Open
 
The following rooms are open for use:

Betting Room (Info)
[Play]

Pokies Room (Info)
[Play]
 
  Betting Information
 
There are 10 numbers. You can choose one of these and choose the ammount you want to bet.

Three numbers are choosen at random. One of them pays out 4x what you put in, another 2x and finally 1x.

If you do not get one of the lucky numbers, then you loose your bet.

Happy betting!  

[Menu]
  Pokies Information
 
This is just like the pokies.

All you need to do is place your bet and pul the leaver.

If you get three in a row you get out 6x what you put in.
If you get any two the same, then you get out 1x.
If you do not get any of the above then you lose 1x.

Happy betting!  

[Menu]
  Place your bet!

You have: $poon(s)  

Amount of to bet: $p.

Pick a number..
1
2
3
4
5
6
7
8
9
10

 

[Menu]
  Results
 
Congratulations, you won $newspoons $poons!
You now have $allspoons $poons
"; $sql = "UPDATE phpbb_users SET user_spoons = user_spoons + $newspoons, g_bet_played = g_bet_played + 1, g_bet_won = g_bet_won + $newspoons WHERE (user_id = '$user_id')"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Undate result.", "", __FILE__, __LINE__, $sql); } } if ($number == $luckynum2) { $newspoons = $Bet * 2; $allspoons = $newspoons + $spoons; print "
Congratulations, you won $newspoons $poons!
You now have $allspoons $poons
"; $sql = "UPDATE phpbb_users SET user_spoons = user_spoons + $newspoons, g_bet_played = g_bet_played + 1, g_bet_won = g_bet_won + $newspoons WHERE (user_id = '$user_id')"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Undate result.", "", __FILE__, __LINE__, $sql); } } else if ($number == $luckynum3) { $newspoons = $Bet * 1; $allspoons = $newspoons + $spoons; print "
Congratulations, you won $newspoons $poons!
You now have $allspoons $poons!
"; $sql = "UPDATE phpbb_users SET user_spoons = user_spoons + $newspoons, g_bet_played = g_bet_played + 1, g_bet_won = g_bet_won + $newspoons WHERE (user_id = '$user_id')"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Undate result.", "", __FILE__, __LINE__, $sql); } } else if ($number != $luckynum1 && $number != $luckynum2 && $number != $luckynum3) { print "
Awww, you lost.
The lucky number was either $luckynum1, $luckynum2 or $luckynum3 & your number was $number


You lost $Bet $poons!
"; $sql = "UPDATE phpbb_users SET user_spoons = user_spoons - $Bet, g_bet_played = g_bet_played + 1, g_bet_lost = g_bet_lost + $Bet WHERE (user_id = '$user_id')"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Undate result.", "", __FILE__, __LINE__, $sql); } } $sres1 = $Bet * 4; $sres2 = $Bet * 2; $sres3 = $Bet * 1; print "


The numbers were:
$luckynum1 for $sres1 $poons
$luckynum2 for $sres2 $poons
$luckynum3 for $sres3 $poons
"; ?>  

[Try Again!] [Menu]
  Pokie Machine

You have: $poons to spend

Amount to put into machine: $p.


[Menu]
  Pokie Machine Results


Congratulations!
You got all three the same!

You won $newspoons $poons!

You now have $allspoons $poons!
";?>
 

[Try again] [Menu]
  Pokie Machine Results


Congratulations, you got 2 out of 3!
You won $newspoons $poon(s)!

You now have $allspoons $poons.";?>
 

[Try again] [Menu]
  Pokie Machine Results


Aww, you lost! You lost $lostspoons $poon(s)!
";?>
 

[Try again] [Menu]