|
|
|
@ -220,7 +220,7 @@ if($charm == 3) {
|
|
|
|
|
$tausch_geld = round($tausch_geld);
|
|
|
|
|
|
|
|
|
|
if($tausch_geld <= ($arenalvl * 10000) && $tausch_geld > 0) {
|
|
|
|
|
if($tausch_geld <= getUserAvailableMoney($user['id'])) {
|
|
|
|
|
if($tausch_geld <= getRelevantMoney($user['id'])) {
|
|
|
|
|
$qry = 'UPDATE user SET geld = geld - '.$tausch_geld.' WHERE id = '.$user['id'].';';
|
|
|
|
|
mysql_query($qry);
|
|
|
|
|
$qry = 'UPDATE user SET geld = geld + '.$tausch_geld.' WHERE id = '.$tausch_user_id.';';
|
|
|
|
|