room['file']=='loto') { $titm = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vals` = "loto" ORDER BY `time` DESC LIMIT 1')); if($_GET['get']=='20' && isset($titm['id'])) { if ($u->info['money2']>5) { $u->info['money2'] = $u->info['money2'] - 5; mysql_query('UPDATE `users` SET `money2`= `money2` - 5 WHERE `id` = "'.$u->info['id'].'"'); mysql_query('DELETE FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vals` = "loto"'); } } $titm = mysql_fetch_array(mysql_query('SELECT * FROM `actions` WHERE `uid` = "'.$u->info['id'].'" AND `vals` = "loto" AND `time` > '.(time()-24*60*60).' ORDER BY `time` DESC LIMIT 1')); ?>

Ежедневная Бесплатная Рулетка


Ваш приз:

     
    Центральная площадь
    Платная Комната