Jump to content
MakeWebGames

Mike09

Members
  • Posts

    129
  • Joined

  • Last visited

    Never

Mike09's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. See on the gain variable where it says *(number) just change those to *$ir['level']*(number) then the number will be times by the level IE: level is 2 Honour exchange is 1,000 User gets 2,000 for the award.
  2. 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?! obviously you cant read either aka i didnt tell you to remove anything hence my exact words were "heck i prolly could take the echos out aswell but eh i dont care" so how about your stupid ass go back to your mommy and pog if i dont know wat im doing why is it i own my own hosting company which consists of 2 servers i update myself daily oh wait i know its cause i dont post on the forum like your stupid lowlife idiots lmao get a life and get off your computers Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/savage/public_html/crystalbank.php on line 103 yet mtg messed up again sigh its ok ur dumb result why it gave that error is this $s2 = ($ir['crystalbank'] == 1) '' : 's'; heres a copy of a workin version of the one u posted   <?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'; 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(); ?>   oh and just so you try and say it dont work dont bother cause it is a 100% working version fyi its in my games Your attitude stinks your coding stinks and your spelling stinks basically.. Your supposed to be 21 right? You sound 13.. Oh wow you own your own hosting company.. Big deal i know tons of people below the age of 16 with there own hosting companies..
  3. Re: Game Template [$10]   Those menus aren't even the same look at the border of the print shot and pogs border there slightly different
  4. Re: Content for sale, that's right.   Are all the crimes like this? If so i may bite with this.
  5. Re: [V2]Advanced Whorehouse Update: 12 copies left!
  6. Re: [mccode v2] Revamped Item Market (Similar To The One On Torn) [$5.00] Are you sure this is yours.. I have seen this somewhere else before...
  7. Re: [V2]Advanced Whorehouse Thanks :)
  8. Re: [V2]Advanced Whorehouse   This modification will be updated and when it is updated people who have bought this one will receive the upgraded ones for free. (Probably should of mentioned that in the first post)
  9. This mod allows an Admin to create Whores and the users to sleep with the whores and gain will. However, With this one the admin can set the minimum and maximum will gain on a whore, Then when a user sleeps with the whore they gain random will between the minimum and maximum will. But as always screen shots speak louder than words! Files: whores.php, SQL.txt Price: $5 Copies: 15 Contact: [email protected]
  10. Re: Inventory revamp   For you not for everyone on CE...
  11. Re: Viewing codes hack   Thank you for stating the obvious...
  12. Re: Building Mods - now for sale! I'd love to see you try to make one better...
  13. Re: grapics need will pay 15 pounds We are sorry to inform you but your comment has failed. Please try again, This time without trying to be a loud mouth smartass
  14. Mike09

    New game

    Re: New game Yeah i guess it is a bit blue :P i may change that when ive finished fixing the standard MCCode bugs in it..
  15. Mike09

    New game

    Re: New game :O You dont like blue? Blasphemy!
×
×
  • Create New...