Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,140
  • Joined

  • Last visited

  • Days Won

    148

Everything posted by Magictallguy

  1. Re: [mccodes v2] Combined Gallery and Comment System [$40.00]   My money that I was due to be paid on Tuesday has still not gone into my bank account. I will happily reimburse you with double what you paid. I apologise for this, but due to the situation, this is out of my hands.
  2. Re: Cpanel File Manager V2 from game   Perhaps a little too much looking into - for the moment. But I'm sure someone, somewhere, will figure something out! ;)
  3. Re: [mccode v2] Bodyguard Mod   I didn't plan my CSS Administration System, or my Gallery and Combined Comment System... You can tell from the screenshots that I made it well (if I do say so myself :P)
  4. Re: Rise Of Lycans   These two are obviously not an intelligent life-form. They seem to know nothing of civility..
  5. Re: Cpanel File Manager V2 from game   You said it yourself.. Some game owners ARE lazy.
  6. Re: Cpanel File Manager V2 from game   My code was meant for inside file.php.. Also, perhaps adding an "exit" strategy may help ;) if($userid != 1) { header("Location: index.php"); exit; }
  7. Re: Count Backwards :D 4871
  8. Re: V2 crystal temple..   Sir, yes sir!
  9. Re: [MCcodes All] Staff Members cannot be attacked.   so true Anthony but to comment on the fed users being untouchable for several main reasons 1: they could of exploited money or something 2: owners are lazy they don't wipe users money etc... i think they are good reasons why that should still be enabled. Lazy owners shouldn't own games, seeing that they are too incompetant to run it properly.
  10. Re: 3 Word Game smelly penis flavour // O.o
  11. Re: [MCcodes All] Staff Members cannot be attacked.   Remove the users cash/crystals/whatever. Why should people in fed be untouchable?   die() and exit() aren't needed together. Use 1 or the other ;)
  12. Re: Cpanel File Manager V2 from game   Even better one for you.. if($userid ! =1) { header("Location: index.php"); }   Always fun :D
  13. Re: V2 crystal temple..   Exactly why are we leading up to an arguement of coding methods?! Whos making an arguement over it? I said "leading up to"..
  14. Re: V2 crystal temple..   Exactly why are we leading up to an arguement of coding methods?!
  15. Re: [V2] Crystalbank Mod [V2]   pog if ur referring to me not having a clue myself your 100% wrong so how bout you pack it in and sit there like a good boy i may be a newbie poster on here but that doesnt mean i am a newbie coder so eh shut ya faces If this is true, why on earth did you tell me to remove the echo?!
  16. Re: [McCodes V2] Assassinate user (donator only)   Simply using $ir['level'] would do the job :)
  17. Re: [REVIEW] Review my game plz. Fearless-Dojo Lol Is there any point even posting 1 word sentences :| No Yes :) and MTG you just posted 1 word also. xD That was the idea... -- Plastic cups are quite good.. Good for popping in people's ear to partially deafen them for a few seconds.. (6) i meant good for holding acid :lol: Could be acetic acid... (vinegar!)
  18. Re: [mccode v2] Crystalbank Mod Secured, again, properly.. Specially for Wickidnezz, a supposed 21 year old who thinks it's great to badmouth a 17 year old -.-   <?php include(DIRNAME(__FILE__) . '/globals.php'); echo "<h3>Crystal Bank</h3>"; if($ir['crystalbank'] > -1) { $_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? strtolower(trim($_GET['action'])) : false; switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { $cost = 25000; if($ir['money'] > $cost) { echo sprintf("Congratulations, you bought a crystal bank account for \$%s! ", number_format($cost)); echo "[url='crystalbank.php']Start using my account[/url]"; $buy = sprintf("UPDATE users SET money = money - %u, crystalbank = 0 WHERE (userid = %u)", $cost, $userid); $db->query($buy); } else { echo "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { echo "Open a crystal bank account today, just \$25,000! [url='crystalbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; echo sprintf("[b]You currently have %s crystals in your Crystal bank.[/b] ", number_format($ir['crystalbank'])); echo "<table width='75%' cellspacing='1' class='table'>"; echo "<tr>"; echo "<td width='50%'>[b]Deposit Crystals[/b] "; echo "<form action='crystalbank.php?action=deposit' method='post'>"; echo sprintf("Amount: <input type='text' name='deposit' value='%s' /> ", number_format($ir['crystals'])); echo "<input type='submit' value='Deposit' />"; echo "</form></td>"; echo "<td>[b]Withdraw Crystals[/b] "; echo "<form action='crystalbank.php?action=withdraw' method='post'>"; echo sprintf("Amount: <input type='text' name='withdraw' value='%s' /> ", number_format($ir['crystalbank'])); echo "<input type='submit' value='Withdraw' />"; echo "</form></td>"; echo "</tr>"; echo "</table>"; } function deposit() { global $db, $ir, $userid, $h; $_POST['deposit'] = str_replace(',', '', $_POST['deposit']); $_POST['deposit'] = abs((float) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { echo "You do not have enough crystals to deposite in the bank."; $h->endpage(); exit; } $gain = $_POST['deposit'] - $fee; $ir['crystals'] += $gain; $deposit = sprintf("UPDATE users SET crystalbank = crystalbank + %s, crystals = crystals - %s WHERE (userid = %u)", $gain, $_POST['deposit'], $userid); $db->query($deposit); $s = ($_POST['deposit'] == 1) ? '' : 's'; $s2 = ($ir['crystalbank'] == 1) ? '' : 's'; echo sprintf("You hand over %s crystal%s to be deposited, %s crystal%s are added to your account. ", number_format($_POST['deposit']), $s, number_format($gain), $s); echo sprintf("[b]You now have %s crystal%s in the crystal bank.[/b] [url='crystalbank.php']> Back[/url]", number_format($ir['crystalbank']), $s); } function withdraw() { global $db, $ir, $userid, $h; $_POST['withdraw'] = str_replace(',', '', $_POST['withdraw']); $_POST['withdraw'] = abs((float) $_POST['withdraw']); if($_POST['withdraw'] > $ir['crystalbank']) { echo "You do not have enough crystals to withdraw from the bank."; $h->endpage(); exit; } $gain = $_POST['withdraw']; $ir['crystalbank'] -= $gain; $withdraw = sprintf("UPDATE users SET crystalbank = crystalbank - %s, crystals = crystals + %s WHERE (userid = %u)", $gain, $gain, $userid); $db->query($withdraw); $s = ($gain == 1) ? '' : 's'; $s2 = ($ir['crystalbank'] == 1) '' : 's'; echo sprintf("You ask to withdraw %s crystal%s, the banking lady grudgingly hands it over. ", number_format($gain), $s); echo sprintf("[b]You now have %s crystal%s in the bank.[/b] [url='crystalbank.php']> Back[/url]", number_format($ir['crystalbank']), $s2); } $h->endpage(); ?>   Tell me. Are you happy now?
  19. Re: [REVIEW] Review my game plz. Fearless-Dojo Lol Is there any point even posting 1 word sentences :| No Yes :) and MTG you just posted 1 word also. xD That was the idea... -- Plastic cups are quite good.. Good for popping in people's ear to partially deafen them for a few seconds.. (6)
  20. Re: [V2] Crystalbank Mod [V2]   look at this Magictallguy thinks hes so cool yet the version he secured doesnt even work right away oh lordy dude sit down and start suckin that thumb of urs instead of tryin to secure other peoples scripts and knock them the entire time my god people like you are the reason some newbies wont post on CE oh heres a error after taking messing with it abit to get to work Parse error: syntax error, unexpected T_STRING in /home/thugwar/public_html/crystalbank.php on line 118 look dude got that error after 10mins attemptin to make ur so called secured version to work i guess your not so great huh Magictallguy look at this folks he put it like so echo ("You ask to withdraw , ", number_format($gain), $s); echo ("the banking lady grudgingly hands it over. "); echo ("You now have %s crystal%s in the bank. ", number_format($ir['crystalbank']), $s); echo ("> Back"); which caused errors why you may ask well all the " ; he has in there are unneeded so it should of been echo (You ask to withdraw , , number_format($gain), $s) echo (the banking lady grudgingly hands it over. ); echo (You now have %s crystal%s in the bank. , number_format($ir['crystalbank']), $s) echo (> Back) heck i prolly could take the echos out aswell but eh i dont care To my defence, that was quite a while ago, and I didn't test the script. My skills have increased (I believe so anyway), and who the hell are you to think you can give me flak because you don't agree with my coding methods? You NEED the quote marks "", or else the code doesn't know what it's doing - kind of like you -.- I'll recode it, again, for your benefit. Maybe then, you will see, why I do this for others..
  21. Re: Fearless-Dojo   Which one? Left or right?
  22. Re: +9999--99999999 ( Bug )   Feel free to overwrite your cmarket.php with this one: http://criminalexistence.com/ceforums/h ... 34#p134734
  23. Re: always running from a fight   I've tested both my attack.php and his - I found no error. It's probably a session overwrite from his old one.. Clearing cookies/cache should fix this :)
  24. Re: How to make sure assistants won't ban the admin?   Thanks for mentioning me.... -.-
  25. Re: +9999--99999999 ( Bug ) Placing this, underneath the globals.php include, will secure that :)   <?php //Remove this, added it for the colours only! xD $_POST['amount'] = isset($_POST['amount']) && ctype_digit($_POST['amount']) ? abs(@intval($_POST['amount'])) : false; $_POST['crystals'] = isset($_POST['crystals']) && ctype_digit($_POST['crystals']) ? abs(@intval($_POST['crystals'])) : false;
×
×
  • Create New...