zelig Posted April 14, 2012 Share Posted April 14, 2012 Okay, for some reason, I'm showing an error on this: The error occurs with the bracket after the else, and I don't understand why... if ($strength + $vitality + $wisdom + $agility >= 100) { echo "You have already maxed out your stats at 100!"; $query = $db->execute("update `users` set `energy`=?, `mine_exp`=?, `minecount`=?, `small_gold`=? where `id`=?", array($player->energy - 1, $player->mine_exp + 1, $player->minecount + 1, $player->small_gold + 1, $player->id)); echo "$blurb $randeffect<p>"; } else($strength + $vitality + $wisdom + $agility < 100) { echo "<br /><b>Your mining leveled up and you gained 1 strength point!</b>"; $query = $db->execute("UPDATE `users` set `energy`=?, `mine_level`=?, `mine_exp`=?, `minecount`=?, `small_gold`=?, `strength`=?, `mine_maxexp`=? where `id`=?", array($player->energy - 1, $player->mine_level + 1, $player->mine_exp + 1, $player->minecount + 1, $player->small_gold + 1, $player->strength + 1, $player-> mine_maxexp + $newmax, $player->id)); } Link to comment https://forums.phpfreaks.com/topic/260945-why-is-this-an-error-right-now/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.