Jump to content

Why is this { an error right now?


zelig

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.