Jump to content
MakeWebGames

secret_life

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by secret_life

  1. when user1 attack user2 in event he write Attacked by user2 in reason he should wirte Attacked by user1 how corect rhis ? i have try to find where the time is set into the bdd because now the timer is set to 1 minte after you receive a bomb how i can change that ? thanx
  2. nice mod can i delete preports table in bdd ? this is normal when i delete it, he dont erase it in the database ? sometime he do and sometime not
  3. hi, i have take the code of War_hero and i try to secure the string i try to add this [mysql]if(!is_numeric($_POST['buysub'])) { die("Number only. <a href = 'lottery.php' />Retry</a>"); }[/mysql] i try to put this there [mysql]function buy_sub() { global $db,$ir,$userid; $_POST['buysub'] = abs((int) $_POST['buysub']); $cost = 1000; $price = $cost * $_POST['buysub'];   if($_POST['buysub'] > 25) { die("You can't buy more than 25 lottery tickets. <a href = 'index.php' />Go Home</a>"); } if($ir['lottery'] >= 25) { die("You have already purchased 25 tickets this week. <a href = 'index.php' />Go Home</a>"); } if($_POST['buysub'] + $ir['lottery'] > 25) { die("You can't buy this many tickets because you would exceed the maximum amount of allowed tickets. <a href = 'index.php' />Go Home</a>"); } if($ir['money'] < $price) { die("You don't have enough money to buy {$_POST['buysub']} tickets. <a href = 'index.php' />Go Home</a>"); } if(!is_numeric($_POST['buysub'])) { die("Number only. <a href = 'lottery.php' />Retry</a>"); }[/mysql] but dont work i dont enderstand why when i enter text like 'money'=2000000 i have this ( You have bought 0 lottery tickets. Go Home ) can someone help me please
  4. thanks devonbnice i have try it and i always cut the blue wire and i won every time the wire you need to cut is random or ....
  5. i was i said in my other post but i dont know why and how correct this who can correct this ???
  6. Mccode dont have a weeek cron job you need to create one cron_week.php copy this inside   <?php include_once(dirname(__FILE__) .'/config.php'); global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { echo'Wrong code.'; exit(); } define('mono_on', 1, true); require_once(dirname(__FILE__) .'/class/class_db_'. $config['driver'] .'.php'); $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; include_once(dirname(__FILE__) .'/global_func.php'); $thesql = $db->query("SELECT * FROM `lottery`"); $amnt = $db->num_rows($thesql); $lotto = $db->fetch_row($thesql); $winnerid = rand(1, $amnt); $user = $db->fetch_single($db->query("SELECT `userid` FROM `lottery` WHERE (`id` = ". $winnerid .");")); $db->query("UPDATE `users` SET `money` = `money` + ". $lotto['jackpot'] ." WHERE (`userid` = ". $user .");"); event_add($user, 'You\'ve won the weekly lottery and won '. money_formatter($lotto['jackpot']) .'.', $c); $db->query("UPDATE `users` SET `lottery` = 0;"); $db->query("TRUNCATE TABLE `lottery`"); echo'ID: '. $winnderid .' won the lotto.'; exit(); ?>   and set it up in your cpanel like other but for every week
  7. nice mod i love it how can i set chance to get a bomb when player go in explorer ? this is this line ?   if ( $int == 1 OR $int == 50 OR $int == 100 OR $ir['bomb'] == 1 )   if i enter other number like this $int == 3 OR $int == 5 that give more chance to get a bomb ?? thanks
  8. a warning i have this warning Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 16 in /home/..../class/class_db_mysql.php on line 94 0" /> dont work for me
  9. update count problem when delete messege with chekbox and icon the message count in menu dont make -1 in database i know miss a line like this   $db->query("UPDATE users SET new_mail=new_mail-1 WHERE userid=$userid");   i try to find where, i post if i find where
  10. essential pack i have already email im, no answer i have email taxed to, no answer
  11. how get this mod ?? i try to get this mod pm me thanks
  12. all mod script or pack mod i try to get pack of mod from taxed or the other own pm me if you have some mode screenshot and price please thanks
      • 1
      • Like
×
×
  • Create New...