Jump to content
MakeWebGames

Sethenor2

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Sethenor2

  1. Hi, just wanted to ask the community about email activation is it a good idea or a bad idea tell me your thoughts
  2. Hi i bought a modification not so long ago but unfortunately it doesn't work so i was hoping the community would help The error is QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM `dealer_global` WHERE `D_userid` =   And the cron code <?php include "globals.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_mysql.php"; $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; //add drugs $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(10,20)." WHERE drugID=1"); $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(5,15)." WHERE drugID=2"); $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(10,15)." WHERE drugID=3"); $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(5,10)." WHERE drugID=4"); $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(5,10)." WHERE drugID=5"); $db->query("UPDATE dealer_data SET drugAMOUNT = ".mt_rand(5,10)." WHERE drugID=6"); $addheat = mt_rand(0,5); $info = $db->query("SELECT * FROM `dealer_global` WHERE `D_userid` = ".$userid); if(!$db->num_rows($info)) { echo "Invalid source"; exit; } $user = $db->fetch_row($info); if($user['heat'] > 5) { $db->query("UPDATE dealer_global SET heat = heat - 5 WHERE D_userid = ".$userid); } if($user['addiction'] > 5) { $db->query("UPDATE dealer_global SET addiction = addiction - 5 WHERE D_userid = ".$userid); } if(!$user['martime'] || $user['martime'] < 0) { $db->query("UPDATE dealer_global SET martime = - 1, marijuana = marijuana + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished growing your marijuana."); } else { $db->query("UPDATE dealer_global SET martime = martime - 1 WHERE D_userid = ".$userid); } if(!$user['coketime'] || $user['coketime'] < 0) { $db->query("UPDATE dealer_global SET coketime = - 1, cocaine = cocaine + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished making cocaine."); } else { $db->query("UPDATE dealer_global SET coketime = coketime - 1 WHERE D_userid = ".$userid); } if(!$user['acidtime'] || $user['acidtime'] < 0) { $db->query("UPDATE dealer_global SET acidtime = - 1, acid = acid + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished making acid."); } else { $db->query("UPDATE dealer_global SET acidtime = acidtime - 1 WHERE D_userid = ".$userid); } if(!$user['etime'] || $user['etime'] < 0) { $db->query("UPDATE dealer_global SET etime = - 1, ecstasy = ecstasy + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished making ecstasy."); } else { $db->query("UPDATE dealer_global SET etime = etime - 1 WHERE D_userid = ".$userid); } if(!$user['herointime'] || $user['herointime'] < 0) { $db->query("UPDATE dealer_global SET herointime = - 1, heroin = heroin + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished making heroin."); } else { $db->query("UPDATE dealer_global SET herointime = herointime - 1 WHERE D_userid = ".$userid); } if(!$user['methtime'] || $user['methtime'] < 0) { $db->query("UPDATE dealer_global SET methtime = - 1, meth = meth + 1, heat = heat + $addheat WHERE D_userid = ".$userid); event_add($userid,"You finished making meth."); } else { $db->query("UPDATE dealer_global SET methtime = methtime - 1 WHERE D_userid = ".$userid); } ?>   and the database table [mysql]CREATE TABLE IF NOT EXISTS `dealer_global` ( `Did` int(11) NOT NULL AUTO_INCREMENT, `D_userid` int(11) NOT NULL DEFAULT '0', `suitcase` tinyint(1) unsigned NOT NULL DEFAULT '0', `marijuana` bigint(11) NOT NULL DEFAULT '0', `cocaine` bigint(11) NOT NULL DEFAULT '0', `acid` bigint(11) NOT NULL DEFAULT '0', `ecstasy` bigint(11) NOT NULL DEFAULT '0', `heroin` bigint(11) NOT NULL DEFAULT '0', `meth` bigint(11) NOT NULL DEFAULT '0', `addiction` bigint(11) NOT NULL DEFAULT '0', `heat` bigint(11) NOT NULL DEFAULT '0', `martime` tinyint(11) NOT NULL DEFAULT '-1', `coketime` tinyint(11) NOT NULL DEFAULT '-1', `acidtime` tinyint(11) NOT NULL DEFAULT '-1', `etime` tinyint(11) NOT NULL DEFAULT '-1', `herointime` tinyint(11) NOT NULL DEFAULT '-1', `methtime` tinyint(11) NOT NULL DEFAULT '-1', `tutorial` tinyint(11) NOT NULL DEFAULT '0', `supply1` tinyint(1) unsigned NOT NULL DEFAULT '0', `supply2` tinyint(1) unsigned NOT NULL DEFAULT '0', `supply3` tinyint(1) unsigned NOT NULL DEFAULT '0', `supply4` tinyint(1) unsigned NOT NULL DEFAULT '0', `supply5` tinyint(1) unsigned NOT NULL DEFAULT '0', `supply6` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`Did`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=30 ; [/mysql]
  3. "FACEBOOKCOUP" is worth 15% off, we have this to advertise our Facebook page. :) "FACEBOOKCOUP" is worth 15% off, we have this to advertise our Facebook page. :)   wicked thanks for the reply :P
  4. Is the promo code still going ? :P
  5. Sounds great that can be added to my free mod folder thanks for the share !
  6. so when is it going to be released? and when can we purchase?
  7. Looks good buddy may purchase. Edit: is the fb integration on the demo? And when will it be ready to buy?
  8. Joshua your really funny -.- I was more on the lines of $100 - 150
  9.   Sounds good :P
  10. Ahh ok thank you jordan
  11. Hi all, this may sound fairly noobish but how do you set up incentive voting? Any help or examples would be appreciated Thanks Sethenor
  12. This looks wicked
  13. LMAO ! nice one mark good freebie
  14. Good share thanks
  15. Where does this go?
  16. Payment sent ;)
  17. Payment sent for this mod waiting for files to be sent
  18. Once a fish has been caught what can you do with it?
  19. Sounds good to me :P
  20. Hi, I am looking for for a replica of torns company mod I am willing to pay $$$ i want a known developers preferably Private mail me or reply to this post if interested
  21. Good looking mod you got there Edit: Quick question after a fight what does the animals health go down to
  22. Haha ok thanks jordan and danny
  23. Hi i have mccodes v2 the patched version, Just a question has it really been secured or does it still have vulnerabilities Thanks Sethenor
×
×
  • Create New...