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)); } Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.