{% else-1 %}
(2 авг 2015, 14:13) (0/0) [0]
<?
$a = mysql_fetch_array(mysql_query("SELECT max_health FROM `users` WHERE `id` = '".$user['id']."'"*);
if($a['health'] < $a['max_health']) {
mysql_query("UPDATE `users` SET `health` = '".($user['health'] + 1.00)."' WHERE `id` = '".$user['id']."' LIMIT 1"*;
} else { echo'х*й там';}
?>
  • 1 из 1