Ah yeah i didn't explain it properly
if ( $_GET['type'] == 'hospital' {
if($ir['crystals'] <2) {
die("You don't have enough credits!");
} else {
# remove /* && */ from below
/*if ( $ir['hospital'] ) {
$hosp_rem = ( $ir['hospital'] >= 10 ) ? 10 : $ir['hospital'] ;
mysql_query("UPDATE `users` SET `crystals` = `crystals`-2, `hospital` = `hospital` - $hosp_rem WHERE `userid` = $userid", $c);
} else {
die('You\'re not in hospital.'.$h->endpage());
}*/
}
}
should work perfectly