Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    727
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by peterisgb

  1. I was thinking the same but kepted my mouth shut
  2. Said user hasn't been on since July 2020 so you may not get a reply.
  3. Check that outputs are the same. Some could be displaying in percentage.
  4. I enabled debug last time i was in there this morning. If you refresh the error page it should display the error now.
  5. Don't forget to post the SQL 😄
  6. Made this just now for you. Create a file called streets.php and insert this. <?php require_once('globals.php'); echo "<h3>The Streets</h3><hr />"; $map = '<img src="images/streets.png" usemap="#image-map"> <map name="image-map"> <area target="" alt="Search 1" title="Search 1" href="streets.php?search=1" coords="0,0,100,100" shape="rect"> <area target="" alt="Search 2" title="Search 2" href="streets.php?search=1" coords="100,0,200,100" shape="rect"> <area target="" alt="Search 3" title="Search 3" href="streets.php?search=1" coords="200,0,300,100" shape="rect"> <area target="" alt="Search 4" title="Search 4" href="streets.php?search=1" coords="300,0,400,100" shape="rect"> <area target="" alt="Search 5" title="Search 5" href="streets.php?search=1" coords="400,0,500,100" shape="rect"> <area target="" alt="Search 6" title="Search 6" href="streets.php?search=1" coords="0,0,100,200" shape="rect"> <area target="" alt="Search 7" title="Search 7" href="streets.php?search=1" coords="100,0,200,200" shape="rect"> <area target="" alt="Search 8" title="Search 8" href="streets.php?search=1" coords="200,0,300,200" shape="rect"> <area target="" alt="Search 9" title="Search 9" href="streets.php?search=1" coords="300,0,400,200" shape="rect"> <area target="" alt="Search 10" title="Search 10" href="streets.php?search=1" coords="400,0,500,200" shape="rect"> <area target="" alt="Search 11" title="Search 11" href="streets.php?search=1" coords="0,0,100,300" shape="rect"> <area target="" alt="Search 12" title="Search 12" href="streets.php?search=1" coords="100,0,200,300" shape="rect"> <area target="" alt="Search 13" title="Search 13" href="streets.php?search=1" coords="200,0,300,300" shape="rect"> <area target="" alt="Search 14" title="Search 14" href="streets.php?search=1" coords="300,0,400,300" shape="rect"> <area target="" alt="Search 15" title="Search 15" href="streets.php?search=1" coords="400,0,500,300" shape="rect"> <area target="" alt="Search 16" title="Search 16" href="streets.php?search=1" coords="0,0,100,400" shape="rect"> <area target="" alt="Search 17" title="Search 17" href="streets.php?search=1" coords="100,0,200,400" shape="rect"> <area target="" alt="Search 18" title="Search 18" href="streets.php?search=1" coords="200,0,300,400" shape="rect"> <area target="" alt="Search 19" title="Search 19" href="streets.php?search=1" coords="300,0,400,400" shape="rect"> <area target="" alt="Search 20" title="Search 20" href="streets.php?search=1" coords="400,0,500,400" shape="rect"> <area target="" alt="Search 21" title="Search 21" href="streets.php?search=1" coords="0,0,100,500" shape="rect"> <area target="" alt="Search 22" title="Search 22" href="streets.php?search=1" coords="100,0,200,500" shape="rect"> <area target="" alt="Search 23" title="Search 23" href="streets.php?search=1" coords="200,0,300,500" shape="rect"> <area target="" alt="Search 24" title="Search 24" href="streets.php?search=1" coords="300,0,400,500" shape="rect"> <area target="" alt="Search 25" title="Search 25" href="streets.php?search=1" coords="400,0,500,500" shape="rect"> </map>'; if (isset($_GET['search']) && $_GET['search']) { if ($ir['steps'] <= '0') { echo "Sorry, you don't have enough Steps."; $h->endpage(); exit; } $num = rand(1, 5); $db->query("UPDATE `users` SET `steps`=`steps` - 1 WHERE `userid` = $userid"); switch ($num) { case 1: $tokens = rand(10, 75); echo "You find {$tokens} crystals"; $db->query("UPDATE `users` SET `crystals` = `crystals` + {$tokens} WHERE `userid` = {$userid}"); break; case 2: $money = rand(100, 2500); echo "You find ".money_formatter($money); $db->query("UPDATE `users` SET `money` = `money` + {$money} WHERE `userid` = {$userid}"); break; case 3: echo "You Find Nothing"; break; case 4: echo "You Find Nothing"; break; case 5: echo "You Find Nothing"; break; } ?><hr /> You have <?php echo $ir['steps']; ?> Steps Left. <hr /><?php echo $map; } else { ?>You have <?php echo $ir['steps']; ?> Steps Left.<hr /> Click Anywhere on the Street to Search it.<br /> <?php echo $map; } $h->endpage(); Upload the Attached Image to public_html/images/ directory. Insert this into your Five minute Cron, usually cron_fivemins.php $db->query("UPDATE users SET steps=steps+5 WHERE steps <= 100"); And Finally, Insert this into your SQL databse ALTER TABLE `users` ADD `steps` int(11) NOT NULL DEFAULT '0';
  7. Yes, Anyone who is authorized by you can adjust a files etc. You can select which section said user can access.
  8. My Easy Mod installer is now on the Market.
  9. Happy with the Template now so here are some Screenshots. Just got to add the NEW tags where needed once i figure it out 😄
  10. Thanks. I would add alot more to it but unfortunately most of my stuff ingame has been edited and implanted into so many other things that i cant release them publically 😄
  11. If you want to check out some of the mods in action you can log into my game. CLICK ME
  12. So i have decided to put all my mods on one place where its accessible. This is the Directory to All my Mods, their Status and when they was Last Edited My Mods Directory Overall: 14 Mods Linked to MWG. 10 Live Mods onsite. (Live Mod means that the code is active on my game and if i update it ingame it will auto update to the Mod Directory) Last Updated: 7rd April 2022 10:26pm GMT. Thanks. ideas and what you think of the site welcomed.
  13. As Dave said above. The cheap hosting here is a VERY good deal and cpanel access which is mint.
  14. Oh wow. Your Mcccodes stuff was EPIC!! I can only imagine what you could make now with a few more years of code under your belt 😄
  15. I like how you have used them and yea they sure do stand out more than the traditional. Looks Good
  16. SNAP hehe. I like circles, they stand out more 😄 I like it. Here's mine 🙂
  17. Some info missing that i would like to know please. PHP version, 8? 7? Mysqli, PDO?
  18. Thats good. Did mine help at all?
  19. 1. Load PHPmyadmin 2. Click table Users, and you'll want to click Structure near the top. 3. head down to exp and follow along and click Change. 4. Change Type from int to Decimal. 5. change Value Length to 11,2 from 11. 6. Click Save.
  20. yeah, found that out a few days ago, Its cpanel fault for changing how they charge for their software. I have decided not to use it as I don't like what they are using now lol.
  21. Yeah, I got bored with the price of Gold being stuck at the same rate and only changing when being changed, This way makes it a varied price allowing to make loss/gain on gold and gold stocks hehe
  22. http://infamouswars.mygamesonline.org
  23. Here is mine, I just copied and pasted 😄 if (17 == date('G')) { $qm = $db->query("SELECT userid, bankmoney FROM users WHERE bankmoney >= '1'"); while ($rm = $db->fetch_row($qm)) { $money = $rm['bankmoney']/100*2; event_add($rm['userid'], "Your Bank Interest of \$<span class=green>".number_format($money)."</span> has been credited to your bank account.", $c); } $db->query('UPDATE users SET bankmoney=bankmoney+(bankmoney/100*2) WHERE bankmoney > 0'); } Snapshot of output. attached
  24. http://infamouswars.mygamesonline.org Screenshots are on homepage.
×
×
  • Create New...