Jump to content
MakeWebGames

VegasKiller

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by VegasKiller

  1. What does var_dump mean?
  2. Still not getting the error. Could someone look through the code to find the error?
  3. I added your code after <php and it is still not coming up with an error. It may not be showing the error due to the page loading through an iframe.
  4. That does not help at all...
  5. No, It has not been adding errors for a few months, It may be my host or my own ignorance.
  6. My stock script is only allowing shares to be bought in coca cola, I try to buy stocks in the other companies and they are not added to my portfolio. Can someone please help me?   <?php echo "<table width='100%'><tr><td valign='left' width='95%'><font size=2 color=silver><b>Stock Market</b></font></td><td><table width=100%><tr><td align=right>"; include('../beta/files/link.php'); echo" Stock Market. Users can come buy stocks here. Stock values are calculated every 5 minutes and connect to the real stock ticker to give some realism to the feature. So like real stocks users have the chance to gain or lose stock value without random methods.'></a></td></tr></table><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br /><br />"; if(!isset($tools)){ echo"<font color=red><b>Error | It Seems Something Went Wrong Processing Your Account. Please Try Logging Out And Then Logging Back In. If The Problem Persists Please Email Support At [email protected]. We Apologize For The Inconvenience.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; session_destroy(); exit();} echo"<font color=red><b>Error | The Stock Market Is Currently Closed. Sorry For The Inconvenience.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; exit(); //********************************************* // SETTINGS //********************************************* $comission=".03"; //broker percentage based comission on all trades $comissiondisplay="3%"; //just used to show them how much their paying //********************************************* if ($action=="trade" AND $company) { // kill non numbers preg_match_all("/([0-9]+)/",$shares,$regs); $shares=implode("",$regs[1]); $sql_shares="SELECT shares, total FROM `stocks_shares` WHERE `company`='$company' AND `uid` ='" . $player->uid . "'"; $sql_shares=mysql_query($sql_shares); $row_shares=mysql_fetch_row($sql_shares); $port_total=$row_shares[1]; $port_shares=$row_shares[0]; $sql="SELECT `price`, `company` FROM `stocks_companies` WHERE `ticker`='$company'"; $sql=mysql_query($sql); $row=mysql_fetch_row($sql); $price=$row[0]; $name=$row[1]; $trade_value=$price * $shares; $comission_paid=$trade_value * $comission; if ($type=="buy") { $paid=$trade_value + $comission_paid; if($shares <= 0) { echo"<font color=red><b>Error | You Did Not Enter An Amount Of Stock Shares To Purchase.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; } elseif ($stats_array[cash] < $paid) { echo"<font color=red><b>Error | You Need At Least $".number_format($trade_value)." In Cash To Complete This Trade.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; } else { $sql="UPDATE `user_characters` SET `cash`=cash-$paid WHERE `uid`='" . $player->uid . "'"; mysql_query($sql); if(mysql_num_rows($sql_shares)==0) { $sql="INSERT INTO stocks_shares (`uid`,`company`,`shares`,`total`) VALUES('" . $player->uid . "', '$company','$shares','$trade_value')"; mysql_query($sql); } else { $sql="UPDATE `stocks_shares` SET `shares`=shares+$shares, `total`=total+$trade_value WHERE `uid`='" . $player->uid . "' AND `company`='$company'"; mysql_query($sql); } echo"<font color=green><b>Ciao | You Have Purchased ".number_format($shares)." Share(s) Of $name For $".number_format($paid).". The Broker Took A $commisiondisplay Fee Of $".number_format($comission_paid,2).".</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=driver.php?x=stockmarket'>"; } } elseif ($type=="sell") { $payout=$trade_value - $comission_paid; if($shares <= 0) { echo"<font color=red><b>Error | You Did Not Enter An Amount Of Stock Shares To Sell.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; } elseif($port_shares < $shares) { echo"<font color=red><b>Error | You Do Not Have ".number_format($shares)." Share(s) Of $name.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; } else { if($port_shares==$shares) { $sql="DELETE FROM `stocks_shares` WHERE `uid`='" . $player->uid . "' AND `company`='$company'"; mysql_query($sql); } else { $sql="UPDATE `stocks_shares` SET shares=shares-$shares, total=total-$trade_value WHERE `uid`='" . $player->uid . "' AND `company`='$company'"; mysql_query($sql); } $sql="UPDATE `user_characters` SET `cash`=cash+$payout WHERE `uid`='" . $player->uid . "'"; mysql_query($sql); echo"<font color=green><b>Ciao | You Have Sold ".number_format($shares)." Share(s) Of $name For $".number_format($payout).". The Broker Took A $commisiondisplay Fee Of $".number_format($comission_paid,2).".</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=driver.php?x=stockmarket'>"; } } } echo "<table width=100% align=center><tr valign=top><td align=center colspan=2>"; // BETTER DISPLAY echo "<table width='600' cellpadding='1' cellspacing='3' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr> <td bgcolor=#11111 align=center><font color=silver><b>Company</b></font></td> <td bgcolor=#11111 align=center><font color=silver><b>Sector</b></font></td> <td bgcolor=#11111 align=center><font color=silver><b>Price</b></font></td> <td bgcolor=#11111 align=center><font color=silver><b>Change Today</b></font></td> </tr>"; $color=1; $sql= "SELECT `ticker`, `company`, `industry`, `price`, `change` FROM `stocks_companies` ORDER BY `industry`"; $sql = mysql_query($sql); while($row=mysql_fetch_row($sql)) { $stocks_company[$row[0]]=$row[1]; $stocks_ticker[$row[1]]=$row[0]; $stocks_price[$row[0]]=$row[3]; if ($color==1) { $rowcolor="#11111"; $color=2; } else { $rowcolor="11111"; $color=1; } echo "<tr bgcolor=$rowcolor> <td align=center><a href=http://finance.yahoo.com/q?s=".$row[0]." target=_href><font color=#FFFFFF><b>".$row[1]."</b></></a></td> <td align=center><font color=#FFFFFF>".$row[2]."</font></td> <td align=center><font color=#FFFFFF>$".$row[3]."</td><td align=center>"; if ($row[4] < 0) { echo "<font color=red>"; } else { echo "<font color=lime>"; } echo "$row[4]</font></td></tr>"; } echo "</table><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; echo "</td><tr><td align=center valign=top>"; // BETTER DISPLAY echo "<font size=4 color=silver><center><b>Portfolio</b></center></font> <table width='80%' cellpadding='1' cellspacing='3' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr> <td bgcolor=11111 align=center><font color=silver><b>COMPANY</b></font></td> <td bgcolor=11111 align=center><font color=silver><b>SHARES</b></font></td> <td bgcolor=11111 align=center><font color=silver><b>VALUE</b></font></td> <td bgcolor=11111 align=center><font color=silver><b>GAIN/LOSS</b></font></td> </tr>"; $color=1; $sql= "SELECT company, shares, total FROM `stocks_shares` WHERE `uid`='" . $player->uid . "'"; $sql = mysql_query($sql); while($row=mysql_fetch_row($sql)) { if ($color==1) { $rowcolor="#111111"; $color=2; } else { $rowcolor="black"; $color=1; } $ticker=$row[0]; $value=$row[1] * $stocks_price[$ticker]; $gainorloss=$value - $row[2]; echo "<tr bgcolor=$rowcolor> <td align=center><a href=http://finance.yahoo.com/q?s=".$row[0]." target=_href><font color=#FFFFFF><b>$stocks_company[$ticker]</b></font></a></td> <td align=center><font color=#FFFFFF>".number_format($row[1])."</font></td> <td align=center><font color=#FFFFFF>$".number_format($value,2)."</font></td><td align=center>"; if ($gainorloss < 0) { echo "<font color=red>"; } else { echo "<font color=lime>"; } echo "$".number_format($gainorloss,2)."</font></td></tr>"; } echo "</table></td><td valign=top>"; echo "<font size=4 color=silver><center><b>Trading Floor</b></center></font> <form action=?x=stockmarket&action=trade method=post> <table width='360' cellpadding='1' cellspacing='3' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr bgcolor=#11111> <td> <font face=verdana size=2 color=#FFFFFF><b>Company:</b></font> <td> <select name=company style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\">"; foreach ($stocks_ticker as $tick) { echo "<option value=$tick>$stocks_company[$tick]</option>"; } echo "</select> </td> </tr> <tr bgcolor=#11111> <td> <font face=verdana size=2 color=#FFFFFF><b># of Shares:</b></font> </td> <td> <input type=text name=shares maxlength=15 value=\"$victim\" size=15 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\"> </td> </tr> <tr bgcolor=#11111> <td> <font face=verdana size=2 color=#FFFFFF><b>Action:</b></font> </td> <td> <select name=type style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\"> <option value=buy>BUY</option> <option value=sell>SELL</option> </select> </td> </tr> <tr> <td align=center colspan=2> <font color=#888888>Broker Fee: $comissiondisplay per trade</font> <br> <input type=submit name=Submit value=\"Complete Trade\"> </td> </tr> </table></form>"; echo "</td></tr></table>"; // BETTER DISPLAY ?>
  7. My liquor store script, the page loads a blank screen, I think there may be a break in the code somewhere. Can someone please help me?   <?php echo "<table width='100%'><tr><td valign='left' width='95%'><font size=2 color=silver><b>Weapon Market</b></font></td><td><table width=100%><tr><td align=right>"; include('../beta/files/link.php'); echo" Weapon Market. Users can come here to buy weapons that they can to to another city and sell at a black market for profit.'></a></td></tr></table><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br /><br />"; if(!isset($tools)){ echo"<font color=red><b>Error | It Seems Something Went Wrong Processing Your Account. Please Try Logging Out And Then Logging Back In. If The Problem Persists Please Email Support At [email protected]. We Apologize For The Inconvenience.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; session_destroy(); exit();} $qry = 'SELECT * FROM weapons WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $has_weapons_array = mysql_fetch_array($res); $weapon_names = array('bbgun_bullet', 'handgun_bullet', 'shotgun_bullet', 'rifle_bullet', 'bbgun', 'handgun', 'shotgun', 'ak47', 'bomb', 'taser', 'baseballbat', 'shank', 'detonator', 'battery'); $name_hash = array( 'bbgun_bullet' => 'BBGun Bullet (4-9)', 'handgun_bullet' => 'Handgun Bullet (9-47)', 'shotgun_bullet' => 'Shotgun Bullet (28,142)', 'rifle_bullet' => 'Rifle Bullet (47-237)', 'bbgun' => 'BBGun (280-300)', 'handgun' => 'Handgun (470-500)', 'shotgun' => 'Shotgun (96-100)', 'ak47' => 'AK47 (415-500)', 'bomb' => 'Bomb (248-250)', 'taser' => 'Taser (45-50)', 'baseballbat' => 'Baseball Bat (90-100)', 'shank' => 'Shank (55-100)', 'detonator' => 'Detonator (427-475)', 'battery' => 'Battery (3-9)' ); $qry = 'SELECT * FROM prices_booze WHERE city='.db_quote_smart($player->city); $res = db_query($qry); $prices = mysql_fetch_array($res); $qry = 'SELECT * FROM weapons WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $weapons = mysql_fetch_array($res); $limit = $has_weapons_array["weapon_limit"]; $space_used = 0; foreach($weapon_names as $name){ $space_used += $weapons[$name]; } $space_left = $limit - $space_used; $action = $_GVARS['action']; if( $action == 'buy' ){ foreach($weapon_names as $weapon){ $price = $prices[$weapon]; $amount = (isset($_POST[$weapon]) ? intval($_POST[$weapon]) : 0); $cost = $price * $amount; if( $amount > 0 ){ if( $gUser['cash'] < $cost ){ echo"<font color=red><b>Error | You Do Not Have Enough Money To Purchase $amount unit(s) Of $weapon.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; }elseif( ($space_left-$amount) < 0 ){ echo"<font color=red><b>Error | You Do Not Have Enough Space To Carry $amount unit(s) Of $weapon.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; }else{ $space_left -= $amount; $gUser['cash'] -= $cost; $qry = 'UPDATE user_characters SET cash=cash-'.$cost.' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $randscam = mt_rand(1, 100); $randscam2 = mt_rand(1, 100); if( $randscam == $randscam2 ){ echo"<font color=red><b>Error | You Were Scammed By A Dealer. The Weapons You Bought Turned Out To Be Replicas.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; $randexp=rand(0,1); $qry = 'UPDATE user_characters SET exp=exp+'.$randexp.' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); }else{ $qry = "UPDATE weapons SET $weapon=$weapon+$amount WHERE uid=".db_quote_smart($player->uid); $res = db_query($qry); $randexp2=rand(1,3); $qry = 'UPDATE user_characters SET exp=exp+'.$randexp2.', drug_points=drug_points+'$amount' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $sql="UPDATE adv_stats SET drugs_bought=drugs_bought+$amount WHERE email='" . $stats_array["email"] . "'"; $sql=mysql_query($sql); echo"<font color=green><b>Ciao | You Have Purchased $amount Crate(s) Of $weapon.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; } } } } } // gets updated version of weapons in pocket $qry = 'SELECT * FROM weapons WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $has_weapons_array = mysql_fetch_array($res); echo "<table align=center width=100% bgcolor=000000><tr><td><br>"; echo "<table width='450' cellpadding='0' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr bgcolor=#11111> <td align=center> <font face=verdana size=1 color=silver><b>Weapon</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b>Cost</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b># you have</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b># to buy</b></font> </td> </tr>"; $space_used = 0; $row = 0; foreach($weapon_names as $weapon){ $space_used += $has_weapons_array[$weapon]; echo('<tr bgcolor="#'.($row++ % 2 ? '444444' : '333333').'"> <td align="center" width="125"><font face="tahoma" size="1" color="#ffffff"><b><a href="javascript:popUp(\'weaponsmarket_graph_view.php?weapons='.$weapon.'\')">'.$name_hash[$weapon].'</a></b></td> <td align="center" width="125"><font face="tahoma" size="1" color="#ffffff">$ '.number_format($prices[$weapon]).'</font></td> <td align="center" width="125"><font face="tahoma" size="1" color="#ffffff">'.number_format($has_weapons_array[$weapon]).'</font></td> <td align="center" width="125"><font face="tahoma" size="1" color="#ffffff"><form name="login" action="driver.php?x=weaponstore" method="post"><input type="text" name="'.$weapon.'" size=5 style="font-weight:none;font-size:8pt;color:#ffffff;font-family:arial;background-color:#000000;border-color:#ffffff" maxlength="15"></font></td> </tr>'); echo " </table> <table width='450' cellpadding='0' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr bgcolor=#11111 valign=top><td> <table width=100%><tr> <td align=left width=125><font face=verdana size=1 color=silver><input type=radio checked name=action value=buy> Buy </td> <td align=center width=250><font size=1><font color=#FFFFFF><b>Weapon space:</b></font> " . $space_used . "/" . $has_weapons_array["weapon_limit"] . "</font></td> <td align=right width=125><center><font face=verdana size=1 color=silver><input type=submit value=\" Purchase Weapon \" style=\"FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #333333\" size=1></center></td> </tr></table> </td></tr> </table>"; ?>
  8. My page loads a blank screen, please help me.   <?php echo "<table width='100%'><tr><td valign='left' width='95%'><font size=2 color=silver><b>Booze Market</b></font></td><td><table width=100%><tr><td align=right>"; include('../beta/files/link.php'); echo" Booze Market. Users can come here to purchase alcohol to run across the game for profit.'></a></td></tr></table><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br /><br />"; if(!isset($tools)){ echo"<font color=red><b>Error | It Seems Something Went Wrong Processing Your Account. Please Try Logging Out And Then Logging Back In. If The Problem Persists Please Email Support At [email protected]. We Apologize For The Inconvenience.</b></font><br /><br /><center><img src='/beta/layout_images/headertop.gif' width=100% height=4></center><br />"; session_destroy(); exit();} $qry = 'SELECT * FROM prices_booze WHERE city='.db_quote_smart($player->city); $res = db_query($qry); $alchohol_prices_array = mysql_fetch_array($res); $qry = 'SELECT * FROM alchohol WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $has_alchohol_array = mysql_fetch_array($res); $current_alchohol = $has_alchohol_array['wine'] + $has_alchohol_array['beer'] + $has_alchohol_array['moonshine'] + $has_alchohol_array['rum'] + $has_alchohol_array['whiskey']; $limit = $has_alchohol_array["alchohol_limit"]; $space_left = $limit - $current_alchohol; $action = $_GVARS['action']; if( $action=="buy" ){ for($i = 1; $i <= 5; $i++){ $alchohol_array = array( 1 => 'rum', 2 => 'moonshine', 3 => 'beer', 4 => 'wine', 5 => 'whiskey' ); $alchohol = $alchohol_array[$i]; $alchohol_price = $alchohol_prices_array[$alchohol]; $alchohol_amount = intval((isset($_POST[$alchohol]) ? $_POST[$alchohol] : 0)); $total_cost = $alchohol_prices_array[$alchohol] * $alchohol_amount; if( $alchohol_amount >= 1 ){ if( $gUser['cash'] < $total_cost ){ echo"<font color=red><b>Error | You Do Not Have Enough Money To Purchase $alchohol_amount Bottle(s) Of $alchohol.</b></font><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=javascript:history.back();'>"; } elseif( ($space_left-$alchohol_amount) < 0 ){ echo"<font color=red><b>Error | You Do Not Have Enough Space To Carry $alchohol_amount Bottle(s) Of $alchohol.</b></font><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=javascript:history.back();'>"; }else{ $space_left -= $alchohol_amount; $gUser['cash'] -= $total_cost; $qry = 'UPDATE user_characters SET cash=cash-'.$total_cost.' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $randscam = mt_rand(1, 100); $randscam2 = mt_rand(1, 100); if( $randscam == $randscam2 ){ echo"<font color=red><b>Error | You Dropped The Boxes. The $alcohol You Bought Shatters All Over The Ground.</b></font><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=javascript:history.back();'>"; }else{ $randexp=rand(0,1); $qry = 'UPDATE user_characters SET exp=exp+'.$randexp.', drug_points=drug_points+'$alchohol_amount' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); $sql="UPDATE adv_stats SET drugs_bought=drugs_bought+'$alchohol_amount' WHERE uid=".db_quote_smart($player->uid); $sql=mysql_query($sql); $qry = "UPDATE alchohol SET $alchohol=$alchohol+'$alchohol_amount' WHERE uid=".db_quote_smart($player->uid); $res = db_query($qry); $randexp2=rand(0,1); $qry = 'UPDATE user_characters SET exp=exp+'.$randexp2.' WHERE uid='.db_quote_smart($player->uid); $res = db_query($qry); echo"<font color=green><b>Ciao | You Have Purchased $alchohol_amount Bottle(s) Of $alchohol.</b></font><br /><META HTTP-EQUIV=Refresh CONTENT='5;url=javascript:history.back();'>"; } } } } } // gets updated version of alchohol in pocket $query = "SELECT * FROM $prefix.alchohol WHERE nickname='".$player->nickname."' AND uid='".$player->uid."'"; $result = mysql_query($query); $has_alchohol_array = mysql_fetch_array($result); $current_alchohol=($has_alchohol_array["rum"] + $has_alchohol_array["moonshine"]) + ($has_alchohol_array["beer"] + $has_alchohol_array["wine"]) + $has_alchohol_array["whiskey"]; echo "<table align=center width=100% bgcolor=000000><tr><td><br>"; echo "<table width='450' cellpadding='0' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr bgcolor=#11111> <td align=center> <font face=verdana size=1 color=silver><b>Alchohol</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b>Value per bottle</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b># of bottles you have</b></font> </td> <td align=center> <font face=verdana size=1 color=silver><b># of bottles to buy</b></font> </td> </tr> <tr bgcolor=#333333> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><b><A HREF=\"javascript:popUp('alchoholmarket_graph_view.php?alchohol=rum')\">Rum (750-1300)</a></b> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>$" . number_format($alchohol_prices_array["rum"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>" . number_format($has_alchohol_array["rum"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><form name=login action=driver.php?x=liquorstore method=post><input type=text name=rum size=5 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\" maxlength=15></font> </td> </tr> <tr bgcolor=#444444> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><b><A HREF=\"javascript:popUp('alchoholmarket_graph_view.php?alchohol=moonshine')\">Moonshine (100-200)</a></b></font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>$" . number_format($alchohol_prices_array["moonshine"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>" . number_format($has_alchohol_array["moonshine"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><form name=login action=driver.php?x=liquorstore method=post><input type=text name=moonshine size=5 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\" maxlength=15></font> </td> </tr> <tr bgcolor=#333333> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><b><A HREF=\"javascript:popUp('alchoholmarket_graph_view.php?alchohol=beer')\">Beer (300-550)</a></b></font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>$" . number_format($alchohol_prices_array["beer"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>" . number_format($has_alchohol_array["beer"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><form name=login action=driver.php?x=liquorstore method=post><input type=text name=beer size=5 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\" maxlength=15></font> </td> </tr> <tr bgcolor=#444444> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><b><A HREF=\"javascript:popUp('alchoholmarket_graph_view.php?alchohol=wine')\">Wine (800-1200)</a></b></font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>$" . number_format($alchohol_prices_array["wine"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>" . number_format($has_alchohol_array["wine"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><form name=login action=driver.php?x=liquorstore method=post><input type=text name=wine size=5 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\" maxlength=15></font> </td> </tr> <tr bgcolor=#333333> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><b><A HREF=\"javascript:popUp('alchoholmarket_graph_view.php?alchohol=whiskey')\">Whiskey (500-650)</a></b></font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>$" . number_format($alchohol_prices_array["whiskey"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF>" . number_format($has_alchohol_array["whiskey"]) . "</font> </td> <td align=center width=125> <font face=tahoma size=1 color=#FFFFFF><form name=login action=driver.php?x=liquorstore method=post><input type=text name=whiskey size=5 style=\"FONT-WEIGHT: none; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #000000; border-color: #FFFFFF\" maxlength=15></font> </td> </tr> </table> <table width='450' cellpadding='0' border='2' bordercolor='black' style='margin:0 auto;background-image: url(/beta/layout_images/bg_2.gif);'> <tr bgcolor=#11111 valign=top><td> <table width=100%><tr> <td align=left width=125><font face=verdana size=1 color=silver><input type=radio checked name=action value=buy> Buy </td> <td align=center width=250><font size=1><font color=#FFFFFF><b>Alcohol space:</b></font> " . $current_alchohol . "/" . $has_alchohol_array["alchohol_limit"] . "</font></td> <td align=right width=125><center><font face=verdana size=1 color=silver><input type=submit value=\" Purchase Alcohol \" style=\"FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: Arial; BACKGROUND-COLOR: #333333\" size=1></center></td> </tr></table> </td></tr> </table>"; ?>
  9. So I added a weather mod into my game and changed the weather table to have the cloumn city alongside weather and remaining. The cron is taking 1 away from remaining every minute but it is not changing the weather when the remaining gets to 0, so now I have all my remaining columns at 0. I think the error is from adding in the city column as before it was changing weather for one area and now its meant to change it for over 20. Here is the code.   function update_weather() { /// Weather Starts Here /// mysql_query("UPDATE weather SET remaining=remaining-1 WHERE remaining>0"); $wi=mysql_query("SELECT ws.*,w.* FROM weather ws LEFT JOIN weathers w ON ws.weather=w.w_id LIMIT 1;"); $w=mysql_fetch_array($wi); if($w['remaining'] == 0) { $weather=mysql_fetch_array(mysql_query("SELECT * FROM weathers ORDER BY rand() LIMIT 1;")); $chance=rand(1,$weather['w_chance']*20); if($weather['w_chance'] < $chance) { $weather=mysql_fetch_array(mysql_query("SELECT * FROM weathers ORDER BY rand() LIMIT 1;")); } $chance=rand(1,$weather['w_chance']*20); if($weather['w_chance'] < $chance) { $weather=mysql_fetch_array(mysql_query("SELECT * FROM weathers ORDER BY w_chance DESC LIMIT 1;")); } $w2c=$weather['w_id']; $time = rand(1,120); mysql_query("UPDATE weather SET weather={$w2c} LIMIT 1;"); mysql_query("UPDATE weather SET remaining=$time WHERE remaining=0"); } /// Weather Ends Here /// }   in ajax where it should show the image of the current weather, it is not. I am guessing it is not fetching the weather data.   function display_weather(){ //$ws=mysql_query("SELECT weather,remaining FROM weather"); // Formulate Query $query = sprintf("SELECT weather,remaining FROM weather WHERE city='$stats_array[city]'"); // Perform Query $ws = mysql_query($query); // Error Check if (!$ws) { echo 'Could not run query: ' . mysql_error(); exit; } // if $rws=mysql_fetch_array($ws); //$tws=mysql_query("SELECT w_name FROM weathers WHERE w_id={$rws['weather']}"); // Formulate Query $query = sprintf("SELECT w_name FROM weathers WHERE w_id=%d", mysql_real_escape_string($rws['weather']) ); // Perform Query $tws = mysql_query($query); // Error Check if (!$tws) { echo 'Could not run query: ' . mysql_error(); exit; } // if $fws=mysql_fetch_array($tws); echo "<center><img width=60 height=60 alt='Current Weather For Next {$rws['remaining']} M(s).' title='{$fws['w_name']} For Next {$rws['remaining']} M(s).' src='../beta/layout_images/weather/{$rws['weather']}.png'/></center>"; }
  10. Hey everyone, so about 5 years ago I thought it would be kool to make my own game where me and my friends could play without having to payout outrageous membership fees. Well it turned into something I really enjoy and I would love it if you all would come check it out. WARNING ADDICTIVE!!! Come play this great social mob game http://www.crime-nations.com for your chance to win up to $1000 every month. As the community grows so will the jackpot of 7% of the rounds profits. Register today with promo code: 7777 for 300 FREE Blood Diamonds. Check out the screenshot attachments to get a glimpse of the game.
  11. Thank you Hedge. Also could a Mod please delete this thread.
  12. Hello, When I put in a comma ' into my issue content, It kills the script. I was wondering if anyone could help me?   <? Class NewspaperCP { var $player; var $newspaper; function NewspaperCP($player, $newspaper) { $this->player = $player; $this->newspaper = $newspaper; } function Menu() { echo "<br>"; if($this->IsOwner()) { echo "<center><b><u>Owner Menu</u></b></center><br><br>"; echo "<a href='driver.php?x=newspaper_admin&action=issue&cid=".$this->newspaper->id."'>Create an issue</a><br>"; echo "<a href='driver.php?x=newspaper_admin&action=set_staff&cid=".$this->newspaper->id."'>Set co-owner and reporters</a><br>"; echo "<a href='driver.php?x=newspaper_admin&action=set_ads_price&cid=".$this->newspaper->id."'>Set the price for advertisement</a><br>"; echo "<a href='driver.php?x=newspaper_admin&action=view_articles&cid=".$this->newspaper->id."'>View the articles submitted by the reporters</a><br>"; } elseif($this->IsCoOwner()) { echo "<center><b><u>Co-Owner Menu</u></b></center><br><br>"; echo "<a href='driver.php?x=newspaper_admin&action=issue&cid=".$this->newspaper->id."'>Create an issue</a><br>"; echo "<a href='driver.php?x=newspaper_admin&action=view_articles&cid=".$this->newspaper->id."'>View the articles submitted by the reporters</a><br>"; } elseif($this->IsReporter()) { echo "<center><b><u>Reporter Menu</u></b></center><br><br>"; echo "<a href='driver.php?x=newspaper_admin&action=submit_article&cid=".$this->newspaper->id."'>Submit an article</a><br>"; } else { echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; } } function WriteIssue() { if(!$this->IsOwner() && !$this->IsCoOwner()) { echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; } else { if(!isset($_POST['submit'])) { echo "<center><b><u>Write an issue</u></b></center><br><br>"; echo "<b><u>Information</u></b><br>"; echo "To write a title artice, write the following: [title]Write your title here[/title]<br><br>"; echo "<form action='driver.php?x=newspaper_admin&action=issue&cid=".$this->newspaper->id."' method='post'>"; echo "Write your issue:<br>"; echo "<textarea name='article' cols=80 rows=40></textarea>"; echo "<br>"; echo "<input type='submit' name='submit' value='Publish!'>"; echo "</form>"; } else { if($_POST['article'] == '') echo"<center><table width=90%><tr><td><font color=red><b>Error | You Did Not Submit The Article.</b></font><br /></td></tr></table></center>"; else { $_POST['article']=stripper($_POST['article']); mysql_query("INSERT INTO newspaper_issues(company_id, timestamp, content) VALUES(".$this->newspaper->id.", ".time().", '".$_POST['article']."')") or die(mysql_error()); echo"<center><table width=90%><tr><td><font color=blue><b>Ciao | You Have Successfully Published Your Issue. You Can View It By Clicking <a href='driver.php?x=newspaper_company&cid=".$this->newspaper->id."'>Here</a>.</b></font><br /></td></tr></table></center>"; } } } } function SetStaff() { if(!$this->IsOwner()) { echo "Haxxxxxxxxorrrrrrrrr!"; } else { if(!isset($_POST['submit'])) { echo "<center><b><u>Set Staff Members</u></b></center><br><br>"; echo "<form action='driver.php?x=newspaper_admin&action=set_staff&cid=".$this->newspaper->id."' method='post'>"; echo "Co-owner: "; echo "<input type='text' name='coowner' value='".$this->newspaper->coowner."'><br>"; echo "Reporter #1: "; echo "<input type='text' name='reporter1' value='".$this->newspaper->reporter1."'<br>"; echo "Reporter #2: "; echo "<input type='text' name='reporter2' value='".$this->newspaper->reporter2."'<br>"; echo "Reporter #3: "; echo "<input type='text' name='reporter3' value='".$this->newspaper->reporter3."'<br>"; echo "<input type='submit' name='submit' value='Update!'>"; echo "</form>"; } else { mysql_query("UPDATE newspaper_company SET coowner='".$_POST['coowner']."', reporter1='".$_POST['reporter1']."', reporter2='".$_POST['reporter2']."', reporter3='".$_POST['reporter3']."' WHERE id='".$this->newspaper->id."'") or die(mysql_error()); echo"<center><table width=90%><tr><td><font color=blue><b>Ciao | Successfully Updated.</b></font><br /></td></tr></table></center>"; } } } function SetAdPrice() { if(!$this->IsOwner()) { echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; } else { if(!isset($_POST['submit'])) { echo "<center><b><u>Set Price For Advertisement</u></b></center><br><br>"; echo "<form action='driver.php?x=newspaper_admin&action=set_ads_price&cid=".$this->newspaper->id."' method='post'>"; echo "Price: "; echo "<input type='text' name='amount' value='".$this->newspaper->ad_price."'><br>"; echo "<input type='submit' name='submit' value='Update!'>"; echo "</form>"; } else { $remove_these = array("<", ">", "+","=" ,"-", "--","*"); $amount = str_replace($remove_these, "", $_POST['amount']); if(!is_numeric($_POST['amount'])) echo"<center><table width=90%><tr><td><font color=red><b>Error | Please Put In A Number.</b></font><br /></td></tr></table></center>"; else { $sql = "UPDATE newspaper_company SET ad_price='".$amount."' WHERE id='".$this->newspaper->id."'"; mysql_query($sql) or die(mysql_error()); } } } } function SubmitArticle() { if(!$this->IsReporter()) echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; else { if(!isset($_POST['submit'])) { echo "<center><b><u>Submit an article to the owner</u></b></center><br><br>"; echo "<b><u>Information</u></b><br>"; echo "To write a title artice, write the following: [title]Write your title here[/title]<br><br>"; echo "<form action='driver.php?x=newspaper_admin&action=submit_article&cid=".$this->newspaper->id."' method='post'>"; echo "Write your issue:<br>"; echo "<textarea name='article' cols=80 rows=40></textarea>"; echo "<br>"; echo "<input type='submit' name='submit' value='Send!'>"; echo "</form>"; } else { if($_POST['article'] == '') echo"<center><table width=90%><tr><td><font color=red><b>Error | You Did Not Write An Article.</b></font><br /></td></tr></table></center>"; else { $_POST['article']=stripper($_POST['article']); mysql_query("INSERT INTO newspaper_articles(author, content, company_id, timestamp) VALUES('".$this->player->nickname."', '".$_POST['article']."', ".$this->newspaper->id.", ".time().")") or die(mysql_error()); echo"<center><table width=90%><tr><td><font color=blue><b>Ciao | You Have Successfully Submitted.</b></font><br /></td></tr></table></center>"; } } } } function ViewArticles() { if(!$this->IsCoOwner() && !$this->IsOwner()) echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; else { if(isset($_GET['delete'])) { $art = mysql_query("SELECT * FROM newspaper_articles WHERE id=".$_GET['delete']); $num = mysql_num_rows($art); if($num != 0) { $art = mysql_fetch_object($art); if($art->company_id == $this->newspaper->id) { mysql_query("DELETE FROM newspaper_articles WHERE id=".$_GET['delete']); } } } echo "<center><b><u>Viewing articles submitted by reporters.</u></b></center><br><br>"; $articles = mysql_query("SELECT * FROM newspaper_articles WHERE company_id=".$this->newspaper->id." ORDER BY timestamp DESC"); $num = mysql_num_rows($articles); if($num == 0) echo"<center><table width=90%><tr><td><font color=red><b>Error | No ARticles Have Been Submitted.</b></font><br /></td></tr></table></center>"; else { for($i=0;$i<$num;$i++) { $article = mysql_fetch_object($articles); echo "Article submitted by: ".$article->author." [<a href='driver.php?x=newspaper_admin&action=view_articles&delete=".$article->id."&cid=".$this->newspaper->id."'>DELETE</a>]<br><br>"; echo nl2br($article->content); echo "<br><br>"; } } } } function ViewIssue($id) { /*****SETTINGS*****/ $titlestart = "<font color=#000000'><b>"; $titleend = "</b></font>"; /******************/ $issue = mysql_query("SELECT * FROM newspaper_issues WHERE id=".$id); if(mysql_num_rows($issue) == 0) { echo"<center><table width=90%><tr><td><font color=red><b>Error | This Issue Does Not Exist.</b></font><br /></td></tr></table></center>"; } else { $issue = mysql_fetch_object($issue); $article = nl2br($issue->content); $article = str_replace("[title]", $titlestart, $article); $article = str_replace("[/title]", $titleend, $article); $ad1 = nl2br($issue->ad1); $ad2 = nl2br($issue->ad2); $company = mysql_fetch_object(mysql_query("SELECT * FROM newspaper_company WHERE id=".$issue->company_id)); if($ad1 == "") $ad1 = "<a href='driver.php?x=newspaper_place_ad&iid=".$issue->id."&spot=1'><font color=#000000>Place your ad here!<br> Only for $".number_format($company->ad_price)."!</font></a>"; if($ad2 == "") $ad2 = "<a href='driver.php?x=newspaper_place_ad&iid=".$issue->id."&spot=2'><font color=#000000>Place your ad here!<br> Only for $".number_format($company->ad_price)."!</font></a>"; echo "<center><a href='driver.php?x=newspaper_company&cid=".$company->id."'><b><< Return to Archives</b></a></center><br><br> <table align=center background=images/game/newspaper_body.jpg cellspacing=0 cellpadding=0 width=449> <tr> <td><table width=100% height=72 background=images/game/newspaper_header.jpg><tr><td><center><b><font face=verdana size=5 color=#000000>".$company->name."</font></b></center></td></tr></table></td> </tr> <tr> <td align=center><table width=100% height=21 background=images/game/newspaper_issuediv.jpg><tr><td><center><font color=#000000><b>Released on ".date("D j \of M", $issue->timestamp)."</b></font></center></td></tr></table></td> </tr> <tr> <td> <table width=100% cellpadding=6> <tr> <td> <font color=#000000> <font size=1>".$article."<br> </font> </td> </tr> </table> </tr> <tr> <td> <table width=100% background=images/newspaper_footer.jpg height=63> <tr> <td width=50%><font color=#000000>$ad1</font></td> <td width=50%><font color=#000000>$ad2</font></td> </tr> </table> </td> </tr> </table><Br><br> "; //comments echo "<font size=3 color=#FFFFFF><center><b>Comments</b></font><br><font size=1>(to add a comment scroll down)</font></center><br>"; $comments = mysql_query("SELECT * FROM newspaper_comments WHERE issue_id=".$issue->id." ORDER BY timestamp ASC"); $num = mysql_num_rows($comments); if($num == 0) { echo "<center><b>*No comments have been posted yet*</b></center>"; } else { echo "<center>"; for($i=0;$i<$num;$i++) { $comment = mysql_fetch_object($comments); echo " <table bgcolor=#333333 width=400> <tr bgcolor=#000000> <td align=center colspan=2><font face=tahoma size=1 color=red><b>Posted by ".$comment->author." on ".date("D j \of M \a\t G:i:s", $comment->timestamp)."</b></font></td> </tr> <tr> <td>".nl2br($comment->comment)."</td> </tr> </table><br> "; if($this->player->nickname == $company->owner || $this->player->nickname == $company->coowner) { echo "<font color=red><a href='driver.php?x=newspaper_view_issue&iid=".$issue->id."&delete=".$comment->id."'>Delete</a></font><br>"; } echo "<br>"; } echo "</center>"; } echo "<center>"; echo "<form action='driver.php?x=newspaper_view_issue&iid=".$issue->id."' method='post'>"; echo "<b><u>Post A Comment</u></b><br>"; echo "<textarea name='comment' cols=30 rows=8></textarea><br>"; echo "<input type='submit' name='submit' value='Post it!'>"; echo "</form>"; echo "</center>"; } } function DeleteComment($cid) { $iid = mysql_result(mysql_query("SELECT issue_id FROM newspaper_comments WHERE id=$cid"),0); $coid = mysql_result(mysql_query("SELECT company_id FROM newspaper_issues WHERE id=$iid"),0); $company = mysql_Fetch_object(mysql_query("SELECT * FROM newspaper_company WHERE id=$coid")); if($this->player->nickname != $company->owner && $this->player->nickname != $company->coowner) echo"<center><table width=90%><tr><td><font color=red><b>Error | You Are Not Allowed In This Area.</b></font><br /></td></tr></table></center>"; else { mysql_query("DELETE FROM newspaper_comments WHERE id=$cid"); echo"<center><table width=90%><tr><td><font color=blue><b>Ciao | Comment Deleted.</b></font><br /></td></tr></table></center>"; } } function PostComment($iid) { if($_POST['comment'] == "") { echo"<center><table width=90%><tr><td><font color=red><b>Error | You Did Not Post A Comment.</b></font><br /></td></tr></table></center>"; } else { $_POST['comment']=stripper($_POST['comment']); mysql_query("INSERT INTO newspaper_comments(issue_id, author, comment, timestamp) VALUES ($iid, '".$this->player->nickname."', '".$_POST['comment']."', ".time().")"); echo "Comment posted!"; } } function PlaceAd($issueid, $placeid) { echo "<center><b><u>Place an advertisement</u></b></center><br><br>"; $issue = mysql_fetch_object(mysql_query("SELECT * FROM newspaper_issues WHERE id=$issueid")); if($issue->ad{$placeid} != "") echo"<center><table width=90%><tr><td><font color=red><b>Error | Someone Has Already Has Taken This Ad Spot.</b></font><br /></td></tr></table></center>"; else { $company = mysql_fetch_object(mysql_query("SELECT * FROM newspaper_company WHERE id=".$issue->company_id)); if($this->player->cash < $company->ad_price) echo"<center><table width=90%><tr><td><font color=red><b>Error | You Do Not Have Enough Money To Place An Advertisement Here As It Costs $".number_format($company->ad_price).".</b></font><br /></td></tr></table></center>"; else { if(!isset($_POST['submit'])) { echo "<form action='driver.php?x=newspaper_place_ad&iid=".$issueid."&spot=".$placeid."' method='post'>"; echo "<b>Note that if you place something inappropriate, the admins will take actions. Use your common sense.<br></b>"; echo "Please write your advertisement:<br>"; echo "<textarea name='ad' cols=80 rows=40></textarea>"; echo "<br>"; echo "<input type='submit' name='submit' value='Post it!'>"; echo "</form>"; } else { if(!isset($_POST['ad'])) echo "You didnt write anything!"; else { $ad = "".$_POST['ad']."<br><br>Advertiser: ".$this->player->nickname.""; mysql_query("UPDATE newspaper_issues SET `ad".$placeid."` = '".$ad."' WHERE id=".$issueid) or die(mysql_error()); mysql_query("UPDATE user_characters SET cash=cash-".$company->ad_price." WHERE nickname='".$this->player->nickname."'"); mysql_query("UPDATE user_characters SET cash=cash+".$company->ad_price." WHERE nickname='".$company->owner."'"); echo"<center><table width=90%><tr><td><font color=blue><b>Ciao | You Have Successfully Placed An Advertisement.</b></font><br /></td></tr></table></center>"; } } } } } function ViewCompany($id) { $company = mysql_fetch_object(mysql_query("SELECT * FROM newspaper_company WHERE id=$id")); echo "<center><b><u>Viewing ".$company->name."'s archives</u></b></center><br><br>"; $issues = mysql_query("SELECT * FROM newspaper_issues WHERE company_id=$id ORDER BY `timestamp` DESC"); $num = mysql_num_rows($issues); if($num == 0) echo"<center><table width=90%><tr><td><font color=red><b>Error | This Newspaper Has Not Published An Issue Yet.</b></font><br /></td></tr></table></center>"; else { echo " <table align=center bgcolor=#333333 cellpadding=4 width=300> <tr bgcolor=#000000 valign=top> <td align=center><font face=tahoma size=1 color=red><b>Issue #</b></font></td> <td align=center><font face=tahoma size=1 color=red><b>Published On</b></font></td> <td></td> </tr>"; for($i=0;$i<$num;$i++) { if ($i % 2 == 0) { $rowcolor="#444444"; } else { $rowcolor="#333333"; } $issue = mysql_fetch_object($issues); $issuenum = $i+1; echo " <tr bgcolor=$rowcolor> <td>".$issuenum."</td> <td>".date("D j \of M", $issue->timestamp)."</td> <td><a href='driver.php?x=newspaper_view_issue&iid=".$issue->id."'><b>Read</b></a></td> </tr>"; } echo "</table>"; echo "<br><br>"; echo "<center><b><a href='driver.php?x=newspaper'><< BACK</a></b></center>"; } } function IsOwner() { return $this->newspaper->owner == $this->player->nickname; } function IsCoOwner() { return $this->newspaper->coowner == $this->player->nickname; } function IsReporter() { return ($this->newspaper->reporter1 == $this->player->nickname) || ($this->newspaper->reporter2 == $this->player->nickname) || ($this->newspaper->reporter3 == $this->player->nickname); } function LastIssue() { $info = mysql_fetch_object(mysql_query("SELECT timestamp FROM newspaper_issues WHERE company_id=".$this->newspaper->id." ORDER BY timestamp DESC")); return $info->timestamp; } } ?>
  13. Yeppers, And I will pay to have that done.
  14. Thank you guys for taking my thread off subject. SO again, I am willing to pay someone who will rewrite my script. Stop posting how I should do it cause I aint doing it myself. There is a ****ing reason I offered to pay, Geez.
  15. is the screenshot, as you will see the images are forced apart
  16. The point of this thread is I am willing to pay to have it done for me.
  17. You could also send it to me in my mailbox
  18. Whoever posts back the best rewrite of this script I will send $15 CAD to your bank/paypal. I need the framework fixed so it will work on diff devices and I need the layout cleaned up so its all nice. The sidebars content are stretching too far and ned to be thinned so they dont stretch the background. I have attached a screen shot to show the current look and errors, as you can see the images are not touching and the sidebars content are too wide stretching the sidebars.
  19. TY I will fix that right now. It may be your broswer. I recommend people use google chrome to play CN.
  20. I just updated new ones :P Less you seen them too. But ty for your support, Hope your having a great weekend.
  21. TY very much. Over 25 Screen Shots To Give You A Glimpse Of What Crime Nations Is All About. http://www.Crime-Nations.com/index.php?x=scrnshots.
  22. Hey I just opened my new game and am letting people in to check it out and possibly help me admin. You can check it out at http://www.crime-nations.com. Everyone who signs up I will ogive 300 Blood Diamonds which are in game super credits. TY MWG community. It is best played/viewed on Google Chrome | Firefox. You can als find us on FB @ https://www.facebook.com/Crime.Nations. I am alo looking for forum moderators and game administrators. If you are interested or ave experience please come check out the game as it might not be your style, Checkit out, Then let me know if you are still interested in game Teh_Sin.
  23. Tyvm. I tried using your 3 lines. the image is where it should be. It is not fetching their 'theme' so it did not work, again ty for trying to help though, Have a great day.
  24. Issue resolved, Pls delete this thread.
×
×
  • Create New...