$hp = $user['max_health']/142;
$all = ($pit['def'] + $pit['str'] + $hp)/142;
if($pit['exp']>=$expS[$pit['level']]){
mysqli_query($mc,'UPDATE `pit_users` SET `level`=`level` + 1,`exp`=0,`str`="'.($pit['str']+$all).'",`def`="'.($pit['def']+$all).'",`health`="'.($pit['health']+$all).'" WHERE `id`="'.$pit['id'].'" AND `id_user`= "'.$myID.'"');
mysqli_query($mc,'UPDATE `users` SET `str`='.($user['str'] + $all).',`def`='.($user['def'] + $all).',`max_health`='.($user['max_health'] + $all).' WHERE `id` = '.$myID.'');
header('location:/pitomnik');
exit;