Jump to content
MakeWebGames

Xtreme

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Xtreme's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [mccode v2] Stock Market. Working + Secured I had trouble with the last part of the crons also. my solution which was probaby not the best, but does work, was to change this:   $sel = mysql_query("SELECT stockID,stockNAME FROM `stock_stocks` WHERE `stockNPRICE` < 0"); while($soc = mysql_fetch_assoc($sel)) { if(mysql_num_rows(mysql_query("SELECT holdingID FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']))) { $user = mysql_query("SELECT holdingUSER FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']); $user = mysql_fetch_assoc($user); event_add($user['holdingUSER'], 'Stock '.$soc['stockNAME'].' crashed, you lost all your shares.'); } mysql_query("DELETE FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']); mysql_query("UPDATE `stock_stocks` SET `stockUD` = 1,`stockCHANGE` = 0,`stockNPRICE` = `stockOPRICE` WHERE `stockID` = ".$soc['stockID']); }     to this.   $sel = mysql_query("SELECT * FROM `stock_stocks` WHERE `stockNPRICE` < 0",$c); while($soc = mysql_fetch_array($sel)) { $user = mysql_query("SELECT * FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID'],$c); $users = mysql_fetch_array($user); $stuseris=$users['holdingUSER']; event_add($stuseris, "Stock {$soc['stockNAME']} crashed, you lost all your shares.",$c); mysql_query("DELETE FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID'],$c); mysql_query("UPDATE `stock_stocks` SET `stockUD` = 1,`stockCHANGE` = 0,`stockNPRICE` = `stockOPRICE` WHERE `stockID` = ".$soc['stockID'],$c); }   Thanks to haunted dawg for the mod, I have been having some fun with it.
  2. Re: [Free] [v1] Quests (One Free Quest!) thank you very much! That worked! :-D
  3. Re: [Free] [v1] Quests (One Free Quest!) This is how I have been doing it. :oops:   <u>Dark Side</u> [url='fedjail.php']Federal Jail[/url] [url='whorehouse.php']Lady Anne's House of pleasure[/url] [url='mine.php']Abandoned mine[/url] [url='quests.php']Quests[/url] "; if ($ir['quest']=="on") { print " <a href=treasure.php>Treasure</a>"; } [url='slotsmachine.php?tresde=$tresder']Slots Machine[/url] </td></tr><tr height=100> <td valign=top>
  4. Re: [Free] [v1] Quests (One Free Quest!) Mod looks great! I have added it to my site (lite vers)but when I do this: In explore.php add:   [url='quests.php']Quests[/url] "; if ($ir['quest']=="on") { print " <a href=treasure.php>Treasure</a>"; }   explore.php gives me a blank white screen Any ideas what I am doing wrong?
×
×
  • Create New...