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