Quote:
Originally Posted by trackpads
Does anyone know how to limit the max amount bet? I recently had to reset the entire system after a few folks got over a billion. Mostly our fault with the odds but I would like to limit every bet to just 100.
|
Edit
vbookie.php. Find the following section:
PHP Code:
if ($_POST['do'] == 'placebet')
Change this:
PHP Code:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
}
To this:
PHP Code:
$n_bets_to_place = 0;
while (list($k, $v) = each ($option))
{
if ((int)$v > 0)
$n_bets_to_place++;
if ((int)$v > 100)
$option[$k] = 100;
}
That should limit the maximum bet for any outcome to 100. Untested.