
javance
Members-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by javance
-
wat was it, how did u fix it
-
lmao, thats because everyone have it in there bank
-
alphacrime.com is awesome check it out username is isay123 and pass is isay123 and it has that with alot of people and its kinda hard to get cash
-
nevermind and where do ppl go to see there cars and stuff
-
Parse error: syntax error, unexpected T_STRING in /home/blackeag/public_html/staff_cars.php on line 62
-
nevermind, i found out, just delete (int)
-
bigint with 255 (in my sql ) will go up to a really really really large number, thats what i use stats and stuff for, and where do i put that cariable code thingy and how do i change it to bigint
-
I did that so players wont be bored and they can go on forever
-
how do i change it cuz in my sql i have it where the big int is 255 and they can have as much as they want in the bank
-
<?php include_once(DIRNAME(__FILE__) . '/globals.php'); echo "<h3>Town Bank</h3><h4>Welcome to the Bank, Here you can deposit your cash to keep it safe from other players!</h4><br />"; if ($ir['bankmoney'] > -1) { switch ($_GET['page']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if (isset($_GET['buy'])) { if ($ir['money'] > 49999) { echo "<b>Success:</b> You have paid <b>$50,000</b> for a bank account.<br /> Would you like to go to your bank account?<br /><br /> <a href='bank.php'>Yes</a> | <a href='explore.php'>No</a>"; $db->query("UPDATE users SET money=money-1000,bankmoney=0 WHERE userid=$userid"); } else { echo "<b>Error:</b> You do not have enough cash to open an account!<br /><br /> > <a href='explore.php'>Back</a>"; } } else { echo "<b>Bank Manager:</b> Hey, <i>" . $ir['username'] . "</i>, Welcome to the Bank.<br /> Here you can deposit your cash so it doesn't get stolen by other players.<br /> To open a bank account it will cost <b>$50,000</b>, Would you like to open an account?<br /><br /> <br /><a href='bank.php?buy'>Yes please</a> | <a href='explore.php'>No thanks</a>"; } } function index() { global $db, $ir, $c, $userid, $h; echo "You currently have <b>" . money_formatter($ir['bankmoney']) . "</b> in your bank account.<br /><br /> <table width='80%' class='table'><tr><th width='50%'>Deposit Cash</th><th>Withdraw Cash</th></tr> <tr><td style='text-align:center;'> <br /> <form action='bank.php?page=deposit' method='post'> <input type='text' name='deposit' value='{$ir['money']}' /><br /> <input type='submit' value='Deposit' /></form></td> <td style='text-align:center;'> <br /><form action='bank.php?page=withdraw' method='post'> <input type='text' name='withdraw' value='{$ir['bankmoney']}' /><br /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db, $ir, $c, $userid, $h; $_POST['deposit'] = abs((int) $_POST['deposit']); if ($_POST['deposit'] > $ir['money']) { echo "<b>Error:</b> You do not have enough cash to deposit that amount!<br /><br /> > <a href='bank.php'>Back</a>"; } else { $fee = ceil($_POST['deposit'] * 100 / 100); if ($fee > 0) { $fee = 0; } $gain = $_POST['deposit'] - $fee; $ir['bankmoney'] += $gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); echo "You hand over <b>" . money_formatter($_POST['deposit']) . "</b> to be added into your bank account.<br /><br /> <b>Bank Manager:</b> Okay <i>" . $ir['username'] . "</i>, The cash has been added to your bank account.<br /><br /> You now have <b>" . money_formatter($ir['bankmoney']) . "</b> in your bank account.<br /><br /> > <a href='bank.php'>Back</a>"; } } function withdraw() { global $db, $ir, $c, $userid, $h; $_POST['withdraw'] = abs((int) $_POST['withdraw']); if ($_POST['withdraw'] > $ir['bankmoney']) { echo "<b>Error:</b> You do not have enough banked cash to withdraw that amount!<br /><br /> > <a href='bank.php'>Back</a>"; } else { $gain = $_POST['withdraw']; $ir['bankmoney'] -= $gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); echo "You ask for <b>\$" . $gain . "</b> to be taken from your account.<br /><br /> <b>Bank Manager:</b> Okay <i>" . $ir['username'] . "</i>, Here is your cash.<br /><br /> You now have <b>" . money_formatter($ir['bankmoney']) . "</b> in your bank account.<br /><br /> > <a href='bank.php'>Back</a>"; } } $h->endpage(); ?> tHEY DONT HAVAE IT IN THERE, ANY SUGGESTIONS
-
Thank you so much bro!
-
ok i been un did that i mean i need it to where i can deposit as much money as i want instead of depositing just that amount each time, same with withdrawing
-
ok well can you tell me if i move it
-
[MCCODES V2] Fully Customise your game layout
javance replied to Uridium's topic in Free Modifications
omg is it done yet lmao -
idont know where the bannk php stuff at in the sql can you tell me, cuz i already know about that cuz my stats go up to 255,000,000,000,000,000,000,000,000,000 or more i forgot, its around that
-
Parse error: syntax error, unexpected T_STRING in /home/blackeag/public_html/slap.php on line 8
-
how do you make it where you can make how many cash you want into the bank like the max amount 99999999999999999999999999999999999999999999999 and thats the max amount for withdraw, need help
-
lmao no screenshots?
-
Is there a mod or something or can you tell me how to be back staff if someone makes your staff rank go down and you cant go back up to admin, i own spacemafia.tk, and i tried to go to the sql and that didn't work but idk i need help
-
mccode-v2 Paypal/donation package creation.
javance replied to Gungneer's topic in Free Modifications
nvm i added as php -
mccode-v2 Paypal/donation package creation.
javance replied to Gungneer's topic in Free Modifications
Parse error: syntax error, unexpected T_STRING in /home/blackeag/public_html/smenu.php on line 18 -
I need help with making a clock in my game, spacemafia.tk, in the mainmenu.php but its giving me errors and all my coders are gone due to failure off there sites so i cant contact them and i need help with securing All my pages , i heard you can do it with one code in globals or global_func, btw i have mccodes v2 and looking for free coder