Jump to content
MakeWebGames

Will

Members
  • Posts

    215
  • Joined

  • Last visited

    Never

Everything posted by Will

  1. 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.
  2. Re: V2 a custom gym problem Read my edit...
  3. 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"); } }
  4. Re: Welcome back! I got a problem... http://criminalexistence.com/ceforums/index.php?topic=16490.0
  5. Re: EDITED Points Exchange   Waffles wishes this feature was as easy as that in real life. :lol: :lol:
  6. Re: EDITED Points Exchange Ah I can't focus on it, I keep seeing: pointsexchange.php My mind!
  7. Re: Crystal market exploit? Easy: After: function crystal_buy() { global $ir,$c,$userid,$h; Put: $_GET['ID'] = abs((int) $_GET['ID']);
  8. Will

    Welcome back CE

    Re: Welcome back CE Same here.
  9. 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.
  10. 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.
  11. Re: [Free][v1][v2] Password reset code Have you tried the updated codes on the 1st page??
  12. 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?
  13. Re: [Free][v1][v2] Password reset code Fixed.
  14. Re: [Free][v1][v2] Password reset code Directly copy over the code on the front without changing it. Then try.
  15. Re: [Free][v1][v2] Password reset code Explain. Don't work means nothing.
  16. 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.
  17. Re: [Free][v1][v2] Password reset code Sorry I made a mistake. Use the codes now.
  18. Re: [Free][v1][v2] Password reset code Talk about something related to this here. :x
  19. Re: [Free] Password reset code   I have posted a proper V2 version on the orginal post. :-D
  20. 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
  21. Re: XHTML Valid Game? Yeah, the main error is that they don't specify a type so It doesn't know what to detect.
  22. Re: XHTML Valid Game? I've started doing this, done my login and about half my pages.
  23. 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.
  24. Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Thanks. :-D
  25. 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
×
×
  • Create New...