mysql_query("UPDATE `[users]` SET
`cash`={$data->cash},`attack`={$data->attack},`defence`={$data->defence},`{$item->name}`=".
($data->{"$item->name"}) ." WHERE `login`='{$data->login}'");
print " <tr><td class=\"mainTxt\">Je hebt {$num10}x {$item->name} gekocht! je hebt nu
nog $ {$data->cash} contant</td></tr>n";
if(($data->attack+$data->defence)/2+$data->clicks*5 >= 10000)
mysql_query("UPDATE `[users]` SET `showonline`=1 WHERE `login`='{$data->login}'");
}
else {
$type_s = Array("","Junkie","Kloon","Agent");
$type_s = $type_s[$data->type];
$type_p = Array("","Junkies","Klonen","Agenten");
$type_p = $type_p[$data->type];
eval("$item->error = \"{$item->error}\";");
print " <tr><td class=\"mainTxt\">{$item->error}</td></tr>n";
}
}
else
print " <tr><td class=\"mainTxt\">Je moet minstens 1 {$item->name}
bestellen...</td></tr>n";
}
else
print " <tr><td class=\"mainTxt\">Je hebt niet genoeg geld om {$num10}x {$item->name} te
kopen! je hebt maar $ {$data->cash} contant</td></tr>n";
}
else
print " <tr><td class=\"mainTxt\">Je hebt niet genoeg junkies om {$num10}x {$item->name}
te kopen!</td></tr>n";
}
}
if(is_numeric($_GET['s'])){
if($_GET['s'] >= 1 && $_GET['s'] <= 20)
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`='{$_GET['s']}' ORDER BY
`costs`");
else if($_GET['s'] == 5){
if($data->type == 1){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=5 ORDER BY `costs`");
}
elseif($data->type == 2){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=6 ORDER BY `costs`");
}
elseif($data->type == 3){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=7 ORDER BY `costs`");
}
elseif($data->type == 4){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=8 ORDER BY `costs`");
}
}
else if($_GET['s'] == 7){
if ($clan->money_lvl3 > 0){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=1250 ORDER BY `costs`");
}
else
print " <tr><td class=\"mainTxt\">Je clan heeft een vliegveld nodig anders kunnen je
vliegtuigen niet opstijgen!</td></tr>n";
}
else if($_GET['s'] == 6)
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=1000 ORDER BY `costs`");
else if($_GET['s'] == 8)
if($data->betaal == 255){
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE `area`=18 ORDER BY `costs`");
}
else
print " <tr><td class=\"mainTxt\">Je moet gold member zijn hiervoor...</td></tr>n";
}
}
else
$dbres = mysql_query("SELECT * FROM `[weapons]` WHERE (`area` >= 1 AND `area` <= 35) OR
`area`=35+{$data->type}");
$lastarea = 1;
while($weapon = mysql_fetch_object($dbres)) {
if($data->type == 1)
$weapon->costs = round($weapon->costs*0.95);
else if($data->type == 2) {
$weapon->attack = round($weapon->attack*1.05);
$weapon->defence = round($weapon->defence*1.05);
}