// ############################### start buy weapon ############################### if ($_REQUEST['do'] == 'buy') { $buyweapon = $DB_site->query_first(" SELECT swordname, money FROM swords WHERE id='$nr' "); $buymoney = ($bbuserinfo[user_money] - $buyweapon[money]); if($bbuserinfo[user_money] >= $buyweapon[money]); { $DB_site->query(" UPDATE user SET sword = '$buyweapon[swordname]', user_money = '$buymoney' WHERE userid = '$bbuserinfo[userid]' "); $_REQUEST['forceredirect'] = 1; $url = 'main_shop.php?'; eval(print_standard_redirect('redirect_itemthanks')); } if($buyweapon[swordname] == $bbuserinfo[sword]) { $_REQUEST['forceredirect'] = 1; $url = 'main_shop.php?'; eval(print_standard_redirect('redirect_haveitem')); } if($bbuserinfo[user_money] < $buyweapon[money]); { $_REQUEST['forceredirect'] = 1; $url = 'main_shop.php?'; eval(print_standard_redirect('redirect_notenoughgil')); } }