
Will
Members-
Posts
215 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Will
-
Re: heredoc, heredoc what? I don't use print or echo for text, just for variables. I just make it in html using <? ?> for the php. This is mainly because of syntax highlighting.
-
Re: V2 a custom gym problem Read my edit...
-
Re: V2 a custom gym problem :-o That is the worst syntax I have ever seen. $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour'); $_POST['amnt']=abs((int) $_POST['amnt']); if(!$ir['jail']) { print "<h3>Super energy Gym</h3><hr />"; } else { print "<h3>Super energy Jail Gym</h3><hr />"; } if($_POST['stat'] && $_POST['amnt']) { $stat=$statnames[$_POST['stat']]; if($_POST['stat']=='strength') { $boost=$ir['strength']; } else if($_POST['stat']=='agility') { $boost=$ir['agility']; } else if($_POST['stat']=='guard') { $boost=$ir['guard']; } else if($_POST['stat']=='labour') { $boost=$ir['labour']; } else { die("Invalid Stat"); } } You may have to add some more brackets at the end, but this section is properly formatted. However I don't think that'll work. I would do it this way.: $_POST['amnt']=abs((int) $_POST['amnt']); if(!$ir['jail']) { print "<h3>Super energy Gym</h3><hr />"; } else { print "<h3>Super energy Jail Gym</h3><hr />"; } if($_POST['stat'] && $_POST['amnt']) { if($_POST['stat']=='Strength') { $boost=$ir['strength']; } else if($_POST['stat']=='Agility') { $boost=$ir['agility']; } else if($_POST['stat']=='Guard') { $boost=$ir['guard']; } else if($_POST['stat']=='Labour') { $boost=$ir['labour']; } else { die("Invalid Stat"); } }
-
Re: Welcome back! I got a problem... http://criminalexistence.com/ceforums/index.php?topic=16490.0
-
Re: EDITED Points Exchange Waffles wishes this feature was as easy as that in real life. :lol: :lol:
-
Re: EDITED Points Exchange Ah I can't focus on it, I keep seeing: pointsexchange.php My mind!
-
Re: Crystal market exploit? Easy: After: function crystal_buy() { global $ir,$c,$userid,$h; Put: $_GET['ID'] = abs((int) $_GET['ID']);
-
Re: Welcome back CE Same here.
-
Re: will help please Yes, that is a fact. I'm guessing there's something wrong with it, but you never said anything so I guess I was wrong.
-
Re: Very strange problem.... Ok there's something wrong with your query. Add or die(mysql_error()); To the end of the query. Then see what appears.
-
Re: [Free][v1][v2] Password reset code Have you tried the updated codes on the 1st page??
-
Re: [Free][v1][v2] Password reset code I know that, I fixed the bug. Copy over the new code on the front page. Or do you have V1?
-
Re: [Free][v1][v2] Password reset code Fixed.
-
Re: [Free][v1][v2] Password reset code Directly copy over the code on the front without changing it. Then try.
-
Re: [Free][v1][v2] Password reset code Explain. Don't work means nothing.
-
Re: [Free][v1][v2] Password reset code Mayby some basic trouble shooting skills would be in order? I don't own a McCode 2 game, I made it up from the codes. Try diagnosing it. I'll have a look when I have the time.
-
Re: [Free][v1][v2] Password reset code Sorry I made a mistake. Use the codes now.
-
Re: [Free][v1][v2] Password reset code Talk about something related to this here. :x
-
Re: [Free] Password reset code I have posted a proper V2 version on the orginal post. :-D
-
Re: XHTML Valid Game? Ha ha. Look at mine: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.thecrimelife.net%2Flogin.php :-D :-D :-D :-D :-D :-D :-D
-
Re: XHTML Valid Game? Yeah, the main error is that they don't specify a type so It doesn't know what to detect.
-
Re: XHTML Valid Game? I've started doing this, done my login and about half my pages.
-
mccode-v1 Automatic total cost calculation in shop buy.
Will replied to Will's topic in Free Modifications
Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Good point. I forgot that because I made it then I had to try and remember what it was before to post on here. I have edited the first post because it applies to both versions. -
mccode-v1 Automatic total cost calculation in shop buy.
Will replied to Will's topic in Free Modifications
Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Thanks. :-D -
mccode-v1 Automatic total cost calculation in shop buy.
Will replied to Will's topic in Free Modifications
Re: [mccode][v1]Automatic total cost calculation in shop buy. Yeah. FOR V2: Put the first bit of code under: print "Browsing items at [b]{$shopdata['shopNAME']}...[/b] <table cellspacing=1 class='table'><tr style='background: gray;'><th>Item</th><th>Description</th><th>Price</th><th>Sell Price</th><th>Buy</th></tr>"; $qtwo=$db->query("SELECT si.*,i.*,it.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE si.sitemSHOP={$_GET['shop']} ORDER BY i.itmtype ASC, i.itmbuyprice ASC, i.itmname ASC"); $lt=""; And the second is the same as first. :-D