Jump to content
MakeWebGames

josh-j-c

Members
  • Posts

    60
  • Joined

  • Last visited

josh-j-c's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Where abouts in your code did you put the [click here to level up] text ? Jc.
  2. Me Neither im also having no luck with the upgrade button actually showing ive given my user more then enough EXP to upgrade but the button just doesnt want to show.. Help would be awesome, Jc.
  3. Another off topic arguement, the guy gave users a mod that was simple and pretty straight foward for people to follow and arguements spew over again, thank you damagedcity but its the same as i tried the other day it seems my codes just dont like mods ive tried atleast 5 - 6 mods and everytime i install a mod it throws errors at me so im stuck trying to build my own (N) Thank you though :) Jc.
  4. thats amazing its such a simple thing that can do your nut in, i swear i tried that but it didnt seem to work, thank you for you help mate your a star! Jc
  5. right, ive added item images into my game and i wanted to create a simular style to which torn city has, ive set the database feilds ect and everythings working fine in my iteminfo.php file im just now stuck on the shop :( Heres the code,   <?php include "globals.php"; $_GET['shop'] = abs((int) $_GET['shop']); if(!$_GET['shop']) { print "You begin looking through town and you see a few shops.<br />"; $q=$db->query("SELECT * FROM shops WHERE shopLOCATION={$ir['location']}"); print "<table width=85% cellspacing=1 class='table'><tr style='background: gray;'><th>Shop</th><th>Description</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td><a href='shops.php?shop={$r['shopID']}'>{$r['shopNAME']}</a></td><td>{$r['shopDESCRIPTION']}</td></tr>"; } print "</table>"; } else { $sd=$db->query("SELECT * FROM shops WHERE shopID={$_GET['shop']}"); if($db->num_rows($sd)) { $shopdata=$db->fetch_row($sd); if($shopdata['shopLOCATION'] == $ir['location']) { print "Browsing items at <b>{$shopdata['shopNAME']}...</b><br /> <table cellspacing=1 class='table'><tr style='background: gray;'><th>Image</th><th>Weapon</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=""; while($r=$db->fetch_row($qtwo)) { if($lt!=$r['itmtypename']) { $lt=$r['itmtypename']; print "\n<tr style='background: gray;'><th colspan=5>{$lt}</th></tr>"; } print "\n<tr><td>{$id['itempic']}</td><td>{$r['itmname']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; } print "</table>"; } else { print "You are trying to access a shop in another city!"; } } else { print "You are trying to access an invalid shop!"; } } $h->endpage(); ?>   if anyone could shed some light and help me then that would be awesome, thank you. Jc.
  6. i cant get this nore any other mod on this site to work with my script, its only since i did a fresh restart the begining of this summer holiday and its really starting to do my head in, has anyone got this mod to work on there game because its doing nothing to mine just changing the layout.. do the images need to be a specific file type, in the database does the file have to be called 1.jpg or does its need a <img src='1.jpg'> ive tried everything now and nothings working for me is really starting to put me off all this (N)
  7. This isnt the original mc codes, its been edited and if you havent edited yourself you must have got it off the net due to the fact you would have knew youd have made changes to the database and its feilds.
  8. You pretty much solved the whole problem thank you for you help mate, i just needed to change a few more things such as,   Times to train: <input type='text' name='amnt' value='" . floor($ir['energy'] / 10) . "' /><br />   and;   You now have {$inc} labour and " . floor($ir['energy'] / 10) . " energy left.";   thank you for your help mate, thats been messing with my brain for the whole day whilst at work lol :) one final thing though why would Syntax errors occure unless i actually put,   " . floor($ir['energy'] / 10) . "   and not just,   ($ir['energy'] / 10)   ????   Jc
  9. I've looked all around my gym file but can't anything around the defines the amount of times they can train in energy, so im pretty stuck :/ Where would I need to place that around my gym ? Noteing that my gym is stock at the minute, Thanks for your reply btw :) ,, Jc.
  10. Right I've changed my game so that none donators get 100 energy and donators get 150 but I'm slightly stuck on my gym now, when I attack it works fine taking 50 energy a time but I haven't cracked how to change the gym trains from 100 down to 10 can anyone help? Thank you in advance, Jc.
  11. Re: [mccode v2] Improved Security on Attack System Shouldn't really have apologised i was in the wrong i barely read the bottom bit, the sql just caught my eye, didn't really see the warning message above mate lool, OK mod although i don't think ill be using it I'm going to create and design one my own way :wink: Thanks for the mod though :) Jc Ahh oh and another thing wouldn't there be a little use in a cron for the to refresh the database say every night ? keep the tables clean more manageable and keep the size for the backup down a little especially if you have 100's of members :)
  12. Re: [mccode v2] Improved Security on Attack System   ALTER TABLE `users` ADD `test` INT(2) NOT NULL DEFAULT '1';   ...   ALTER TABLE `users` ADD `test` INT(2) NOT NULL DEFAULT '1';   And the point of the test addition in user tables would be because ? shouldnt you have just actually edited it slighty, You know that people on here can be lazy and are just here to use CE for its mods and not join in with the actuall help, although thinking about it, people should look at the mod there adding before doing so lol Thanks, Jc Oh, p.s isn't there a much easier way of just say, blocking the back button whilst attacking, or bringing up a message like "Dont you just wish you could go back in time in a fight!" would need to use the database less i suppose if you did it this way... (:
  13. Re: [mccodes v2] Find random items while playing the game... What do you mean by "Slow it down" ? I take it your finding items every time you enter "Explore" or "City" ??? Ill have a look through the code and see if i can find anything inside it :) Jc
  14. Re: [mccode v2] Fishing Mod Could we not just use msn, would be much easier and faster : ) also we all have msn... Write back soon and is it going to be me you and shaved ? I have skill's in all area's just a little short within security... I hope that on this joint project i could learn off i believe too talented and skilled coders. Thanks, Jc
  15. Re: [mccode v2] Fishing Mod shaved92bravada... I think me you and MDK666 should create a game of our own or work as a team to generate some high quality mods, we have the ideas and the brainpower to create them so why not, we could maybe even make some cash out of it :) Mail me yeah and we'll have to sort something out :) Jc
×
×
  • Create New...