Есть такой быдлокод
if(isset($_GET['reg']))
{
$a = true;
while($a) {
$ip1 = mt_rand (0, 255);
$ip2 = mt_rand (0, 255);
$ip3 = mt_rand(0, 255);
$ip4 = mt_rand(0, 255);
$ipres = $ip1.'.'.$ip2.'.'.$ip3.'.'.$ip4;
$randip = sprintf("%u", ip2long($ipres));
echo $randip;
$a = mysql_result(mysql_query("SELECT COUNT(*) FROM `hack_users` WHERE `ip` = '".$ipres."' LIMIT 1"),0);
}
mysql_query("INSERT INTO `hack_users` (`user_id`, `avatar`, `level`, `money`, `bank`, `limit`, `cpu`, `cores`, `ram`, `swap`, `net`, `firewall`, `coder`, `decoder`, `spam`, `antivirus`, `virus`)
VALUES ('".$user_id."', '', '1', '100', '0', '150', '128', '1', '128', '128', '100', '0', '0', '1', '1', '0', '0');");
//header('Location: help.php');
exit();
}При запуске фатальная ошибка мол undefined function mt_rand, в других местах функция работает, а тут