Here is quick fix for Blackjack. Find and replace the following code to blackjakck.class.php file.
Find
if (!is_numeric($challenged) || !is_numeric($bet) ) {
echo "<span class='alert'>".BJ_NO_ALLOWED_DATA."</span>";
}else if (($mystats->points < $bet) && $mystats->points) {
echo "<span class='alert'>".BJ_YOU_HAVE_NOT_POINTS." ".BJ_FOR_THIS_BET."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else if ($allowbet == 0 ) {
echo "<span class='alert'>".BJ_NOT_ALLOWED_BET."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else if ($allowedopponent == 0 ) {
echo "<span class='alert'>".BJ_SELECTED_PLAYER_WILL_NOT_BE_CHALLENGED."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else{
and replace it with:
$query = "SELECT sum(bet) FROM #__blackjack_games WHERE challenger = $my->id AND result=0";
$database->setQuery($query);
$summybets = $database->loadResult();
if (!is_numeric($challenged) || !is_numeric($bet) ) {
echo "<span class='alert'>".BJ_NO_ALLOWED_DATA."</span>";
}else if (($mystats->points < $bet) && $mystats->points) {
echo "<span class='alert'>".BJ_YOU_HAVE_NOT_POINTS." ".BJ_FOR_THIS_BET."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else if ($allowbet == 0 ) {
echo "<span class='alert'>".BJ_NOT_ALLOWED_BET."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else if ($allowedopponent == 0 ) {
echo "<span class='alert'>".BJ_SELECTED_PLAYER_WILL_NOT_BE_CHALLENGED."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else if (($mystats->points < $bet + $summybets) && ($bet + $summybets > 0)) {
echo "<span class='alert'>".BJ_YOU_HAVE_NOT_POINTS." ".BJ_FOR_THIS_BET."</span>";
blackjack::ShowChallengeForm($Itemid, $my, $database, $config, $livesite, $mystats);
}else{
Try it.