php - while loop, if statement error -
for reason when using code gives me white screen, , can't find problem in it?
while ($monsterhp > 0 && $yourhp > 0) { if ($pokemon4['speed'] => $row['speed']) { $monsterhp = floor($monsterhp - $mydmg); if($yourhp > 0) { $yourhp = floor($yourhp - $monsterdmg); } }elseif ($pokemon4['speed'] < $row['speed']) { $yourhp = floor($yourhp - $monsterdmg); if ($monsterhp > 0) { $monsterhp = floor($monsterhp - $mydmg); } } }
you had error in operator: =>
(greater or equal)
it should this: >=
Comments
Post a Comment