Jump to content
MakeWebGames

jamieh

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by jamieh

  1. Re: Help with register?   yea i also tried doing it through a proxy and that didnt work also? i also changed the IP in database :S
  2. Well im using V1..I have an account on my site, however when i try to make another/someone else tries, it says they have registered but it dont actually write to the database...Any ideas?
  3. Re: List of Things. $$$   fair enough lol, When im on my pc i will try and do it lol, Better than payin for em :P
  4. Re: List of Things. $$$ Number 5 seams easy, Although existing scripts can be modified for them :P...I'd help for free but not on my pc atm
  5. Re: [Mccodes V2] Easter Egg Events Cool Illusions, Good luck!
  6. Re: [mccode v2] Basic Stock Market Well ive conerted to V1...but i cannot see the stock in the stockmarket...just has table..and view details button...any help?
  7. Re: Businesses Mod [Mccode V2] lol Nince little Mod KiX, i updated mine :P
  8. Re: [Mccodes V2] Easter Egg Events Nice man, Keep it up, Hope we see Screenie soon sounds good :P
  9. Re: Businesses Mod [Mccode V2] I converted this to V1 for my site, and it works perfect lol, Thanks
  10. Re: [V1 && V2] Simple MySQL Rank Mod! V1 conversion: NOT TESTED   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); # if($ir['user_level'] != 2) { $id = 1; //Userid to send the event to Default is userid: 1 $name = stripslashes($ir['username']); //Username who tryed accessing this page.. $php_self = $_SERVER['PHP_SELF']; //Php self event_add($id," ". $name ." tryed to access page: ". $php_self ."", $c); echo ("Your not ment to be here"); exit(); } # switch($_GET['p']) { case "1": page_one(); break; case "2": page_two(); break; case "3": page_three(); break; //-Default default: default_page(); break; } function default_page() { global $ir, $c, $userid; echo '<h3>Rank page</h3> [b]Here you can add ranks for levels![/b] > [url="'. $_SERVER['PHP_SELF']. '?p=1"]Add a Rank[/url] > [url="'. $_SERVER['PHP_SELF']. '?p=2"]Edit a Rank[/url] > [url="'. $_SERVER['PHP_SELF']. '?p=3"]Delete a Rank[/url]'; } function page_one() { global $ir, $c, $userid; if(!$_POST['level'] && !$_POST['name']) { echo '<h3>Add a Rank</h3> <form action="'. $_SERVER['PHP_SELF'] .'?p=1" method="POST"> [b]Fill in the <u>2</u> boxes[/b] [b]Level:[/b] <input type="text" name="level"> [b]Rank Name:[/b] <input type="text" name="name"> <input type="submit" value="Add RANK!"></form>'; } else { $level = abs(@intval ($_POST['level'])); $name = mysql_real_escape_string($_POST['name']); $sql = "INSERT INTO `ranks` (`u_id`, `u_level`, `u_rank`) VALUES('NULL', '". $level ."', '". $name ."')"; mysql_query($sql) or die (mysql_error()); echo '[b]Level:[/b] '. $level .' [b]Rank Name:[/b]'. $name .' ......... Has been added!'; } } function page_two() { global $ir, $c, $userid; switch($_POST['page']) { case "2": $level = abs(@intval ($_POST['u_id'])); $name = mysql_real_escape_string($_POST['name']); mysql_query("UPDATE `ranks` SET `u_level` = '". $level ."', `u_rank` = '". $name ."' WHERE (`u_id` = '". $_POST['u_id'] ."')") or die(mysql_error()); print "Rank has been updated!"; break; case "1": $sql = mysql_query("SELECT * FROM `ranks` WHERE (`u_id` = '". $_POST['rank'] ."')") or die (mysql_error()); $row = mysql_fetch_array($sql); echo '<h3>Editing a Rank</h3><hr /> <form action="'. $_SERVER['PHP_SELF'] .'?p=2" method="post"> <input type="hidden" name="page" value="2" /> <input type="hidden" name="u_id" value="'. $_POST['rank'] .'" /> Level: <input type="text" name="level" value="'. $row['u_level'] .'" /> Rank Name: <input type="text" name="name" value="'. $row['u_rank'] .'" /> <input type="submit" value="Update Rank!" /></form>'; break; default: echo '<h3>Edit a Rank</h3> <form action="'. $_SERVER['PHP_SELF'] .'?p=2" method="POST"> <input type="hidden" name="page" value="1" /> Rank Name: '. ranks($c, "rank") .' <input type="submit" value="Edit RANK!" /></form>'; break; } } function page_three() { global $ir, $c, $userid; if($_POST['rank']) { mysql_query("DELETE FROM `ranks` WHERE (`u_id` = '". $_POST['rank'] ."')") or die (mysql_error()); print "Rank Has just been deleted!"; } else { echo '<h3>Delete a Rank</h3>'; echo 'Deleting a rank is permanent, so be sure you want to delete it, there is no undo, unless you add it back!'; echo '<form action="'. $_SERVER['PHP_SELF'] .'?p=3" method="POST">'; echo 'Rank Name: '. ranks($c, "rank") .' '; echo '<input type="submit" value="Delete RANK be Sure!" /></form>'; } } ?>
  11. Re: Businesses Mod [Mccode V2] Nice mod, i used for my V1 and i converted it Thanks
  12. Re: [Mccodes Lite] Jobs could anyone make this V1...ive tried but when i go for interview it dont get job..Thanks :P
  13. Re: Updating If your wanting to add crimes etc etc..go to phpmyadmin > Crimes > Click insert then fill out all the desired fields and save...
  14. Re: Powered by codes made by Dabomstew I know V1 is free and not copyright..but is V2?
  15. Re: V2 index.php   no i like it, Well done..Much better than the V1 i got :P good luck in future
  16. Re: [mccode V2] Newspaper Mod Converted to V1 for anyone who wants..Thanks NOT TESTED Newspaper.php:   <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); $q=mysql_query("SELECT * FROM papercontent LIMIT 1"); $content=$db->fetch_single($q); $q=mysql_query("SELECT content1 FROM papercontent LIMIT 1"); $content1=$db->fetch_single($q); $q=mysql_query("SELECT content2 FROM papercontent LIMIT 1"); $content2=$db->fetch_single($q); $q=mysql_query("SELECT content3 FROM papercontent LIMIT 1"); $content3=$db->fetch_single($q); $q=mysql_query("SELECT content4 FROM papercontent LIMIT 1"); $content4=$db->fetch_single($q); $q=mysql_query("SELECT content5 FROM papercontent LIMIT 1"); $content5=$db->fetch_single($q); $q=mysql_query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); if($r['user_level'] != 1) { if($_GET['action'] == "all") { if($r['user_level'] != 1) { mysql_query("TRUNCATE TABLE npaper"); print "Newspaper Ads All Cleared! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } else if($_GET['action'] == "npID") { if($r['user_level'] != 1) { mysql_query("DELETE FROM npaper WHERE npID={$_GET['npID']}"); print "News Paper Ad ID {$_GET['npID']} deleted! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } } if($_GET['action'] == "add") { print "<h3>Add Advertisement ($25,000)</h3> <form action='newspaper.php?action=added' method='post'> Ad Title: <input type='text' name='npTITLE' class='textbox'> Ad Body: <textarea rows=5 cols=18 name='npBODY' class='textbox'></textarea> <input class='textbox' type='submit' value='Place Ad ($25,000)' /> </form> <font color=red>[b]WARNING:[/b] Only plain text will work Do not advertise other games No swearing Follow the Game Rules or you will be put in Federal Jail</font> "; } if($_GET['action'] == "added") { if($ir['money']>24999) { print "Congratulations, you bought a an ad for \$25,000! "; mysql_query("UPDATE users SET money=money-2000 WHERE userid=$userid"); $title=str_replace(array("\n"),array(" "),strip_tags($_POST['npTITLE'])); $body=str_replace(array("\n"),array(" "),strip_tags($_POST['npBODY'])); $q=mysql_query("INSERT INTO `npaper` VALUES (NULL, '$userid', '$title', '$body', unix_timestamp())"); print "Ad Added! <META HTTP-EQUIV=Refresh CONTENT='5;url=newspaper.php'>"; } else { print "You do not have enough money to add an ad. [url='explore.php']Back to town...[/url]"; } } print" <table width=100% border='2'> <tr height='50'> <td td colspan='4' width=100% height=20px><center><h1><u><font color='red'>The Corrupted Times</font></u></h1></center></td></tr> <tr><td td rowspan=2>$content</td><td td colspan=3>$content1</td> </tr><tr><td td colspan=2>$content2</td><td td >$content3</td> <tr><td td>$content4</td><td td> <u><center><font color='red'>Player Advertisements</font></u> [url='newspaper.php?action=add']<font color='red'>Buy An Advertisement</font> (<font color='yellow'>$25,000</font>)[/url]<hr> "; if($r['user_level'] == 2) { print " <a href=newspaper.php?action=all>[b]DELETE ALL[/b]</a>"; } $anpdata=mysql_query("SELECT * FROM npaper"); $q=mysql_query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); print "<marquee direction=up onmouseover='this.stop()' onmouseout='this.start()' class='textbox'>"; while($npdata=$db->fetch_row($anpdata)) { $us=mysql_query("SELECT username FROM users WHERE userid={$npdata['npADDER']}"); $us=$db->fetch_single($us); $time=date('F j',$npdata['npTIME']); print " <hr> [b]Ad By: [url='viewuser.php?u={$npdata[']<font color=red>{$us}</font> [{$npdata['npADDER']}][/url] | Added On: {$time}[/b]"; if($r['user_level'] != 2) { print " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}>[b]DELETE[/b]</a>"; } print " [i]<u>{$npdata['npTITLE']}[/i]</u> [i]{$npdata['npBODY']}[/i] "; } print "<hr /></marquee> </td> <td td colspan='2'><center> [url='halloffame.php']<font color=blue>HALL OF FAME</font>[/url]<hr> [url='gangcentral.php']<font color=blue>LOCAL GANGS</font>[/url]<hr> [url='updates.php']<font color=blue>LATEST UPDATES</font>[/url]<hr> [url='userlist.php']<font color=blue>RESIDENTS</font>[/url]<hr> [url='stats.php']<font color=blue>GAME STATS</font>[/url]<hr> [url='usersonline.php']<font color=blue>PEOPLE ONLINE</font>[/url]<hr> [url='gangwars.php']<font color=blue>CURRENT WARS</font>[/url]<hr> [url='unlocked.php']<font color=blue>LEVEL UNLOCKS</font>[/url] </center> </td></tr> <tr><td td rowspan='2'>"; ?> <html> <body> <object width="200" height="200"><param name="movie" value="http://www.youtube.com/v/3t3dHh2HWiw&hl=en&fs=1&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3t3dHh2HWiw&hl=en&fs=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="200" height="200"></embed></object> </body> </html> <?php print "</td> <td td colspan='2' width=50% height=100px>$content5</td><td>Add More Content</td></tr> </table>"; //$h->endpage(); ?>   Staff_specials.php: <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); if($ir['user_level'] < 2) { die("403"); } //This contains punishment stuffs switch($_GET['action']) { case 'editnews': newspaper_form(); break; case 'subnews': newspaper_submit(); break; case 'subnews1': newspaper1_submit(); break; case 'subnews2': newspaper2_submit(); break; case 'subnews3': newspaper3_submit(); break; case 'subnews4': newspaper4_submit(); break; case 'subnews5': newspaper5_submit(); break; case 'givedpform': give_dp_form(); break; case 'givedpsub': give_dp_submit(); break; case 'stafflist': staff_list(); break; case 'userlevel': userlevel(); break; case 'userlevelform': userlevelform(); break; case 'massmailer': massmailer(); break; default: print "Error: This script requires an action."; break; } function newspaper_form() { global $db,$ir,$c,$h,$userid; $q=mysql_query("SELECT * FROM papercontent LIMIT 1"); $news=$db->fetch_single($q); $q=mysql_query("SELECT content1 FROM papercontent LIMIT 1"); $news1=$db->fetch_single($q); $q=mysql_query("SELECT content2 FROM papercontent LIMIT 1"); $news2=$db->fetch_single($q); $q=mysql_query("SELECT content3 FROM papercontent LIMIT 1"); $news3=$db->fetch_single($q); $q=mysql_query("SELECT content4 FROM papercontent LIMIT 1"); $news4=$db->fetch_single($q); $q=mysql_query("SELECT content5 FROM papercontent LIMIT 1"); $news5=$db->fetch_single($q); print "<table width=90% border='2'><tr><td><h3>Editing Newspaper</h3>(YOU NEED TO 'CHANGE' THESE ONE AT A TIME) <table><tr><td> <h4>Article 1</h4> <form action='staff_special.php?action=subnews' method='post'> <textarea rows='20' cols='50' name='newspaper'>$news</textarea> <input type='submit' value='Change' /></form></td><td> <h4>Article 2</h4> <form action='staff_special.php?action=subnews1' method='post'> <textarea rows='20' cols='50' name='newspaper1'>$news1</textarea> <input type='submit' value='Change' /></form></td></tr><tr><td> </td></tr><tr><td> <h4>Article 3</h4> <form action='staff_special.php?action=subnews2' method='post'> <textarea rows='20' cols='50' name='newspaper2'>$news2</textarea> <input type='submit' value='Change' /></form></td><td> <h4>Article 4</h4> <form action='staff_special.php?action=subnews3' method='post'> <textarea rows='20' cols='50' name='newspaper3'>$news3</textarea> <input type='submit' value='Change' /></form></td></tr><tr><td> </td></tr><tr><td> <h4>Article 5</h4> <form action='staff_special.php?action=subnews4' method='post'> <textarea rows='20' cols='50' name='newspaper4'>$news4</textarea> <input type='submit' value='Change' /></form></td><td> <h4>Article 6</h4> <form action='staff_special.php?action=subnews5' method='post'> <textarea rows='20' cols='50' name='newspaper5'>$news5</textarea> <input type='submit' value='Change' /></form> </td></tr> </table></td></tr></table> "; } function newspaper_submit() { global $db,$ir,$c,$h,$userid; $news=$_POST['newspaper']; $news1=$_POST['newspaper1']; $news2=$_POST['newspaper2']; $news3=$_POST['newspaper3']; $news4=$_POST['newspaper4']; $news5=$_POST['newspaper5']; mysql_query("UPDATE papercontent SET content='$news'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); } function newspaper1_submit() { global $db,$ir,$c,$h,$userid; $news1=$_POST['newspaper1']; mysql_query("UPDATE papercontent SET content1='$news1'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); } function newspaper2_submit() { global $db,$ir,$c,$h,$userid; $news2=$_POST['newspaper2']; mysql_query("UPDATE papercontent SET content2='$news2'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); } function newspaper3_submit() { global $db,$ir,$c,$h,$userid; $news3=$_POST['newspaper3']; mysql_query("UPDATE papercontent SET content3='$news3'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); } function newspaper4_submit() { global $db,$ir,$c,$h,$userid; $news4=$_POST['newspaper4']; mysql_query("UPDATE papercontent SET content4='$news4'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); } function newspaper5_submit() { global $db,$ir,$c,$h,$userid; $news5=$_POST['newspaper5']; mysql_query("UPDATE papercontent SET content5='$news5'"); print "Newspaper updated!"; stafflog_add("Updated game newspaper"); }
  17. Re: V2 index.php   No problem :P..im gonna use thanks :)
  18. Re: V2 index.php Ive been browsing forum few days now...i notice "V1 please""..."V2 please"""".....so here is a V1 conversion for everyone...its not too hard just read how to convert :P i learnt in 2 mins Havnt tested just converted!! <?php $housequery=1; session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); $exp=(int)($ir['exp']/$ir['exp_needed']*100); $m=mysql_query("SELECT * FROM users WHERE userid='{$ir['married']}'"); $par=mysql_queryfetch_row($m); if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url] [[url='partner.php']Manage[/url]]"; } else { $partner= "<font color=red>N/A</font>"; } print <<<OUT <table cellspacing="1" border="0" cellpadding="3" class="table" width="70%"> <tr><td colspan="2" class="h">[b]General Information[/b]</td></tr> {$geninf} <tr> <td>[b]Name:[/b] {$ir['username']}</td> <td>[b]Crystals:[/b] {$cm}</td> </tr> <tr> <td>[b]Level:[/b] {$ir['level']}</td> <td>[b]Exp:[/b] {$exp}%</td> </tr> <tr> <td>[b]Money:[/b] $fm</td> <td>[b]HP:[/b] {$ir['hp']}/{$ir['maxhp']}</td> </tr> <tr> <td>[b]Property:[/b] {$ir['hNAME']}</td> <td>[b]Married:[/b] $partner</td> </tr> OUT; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); print <<<OUT <tr> <td class="h" colspan="2">[b]Stats Info[/b]</td></tr> <tr> <td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td> <td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td> </tr> <tr> <td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td> <td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td> </tr> <tr> <td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td> <td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td> </tr> </table> OUT; if(isset($_POST['pn_update'])) { mysql_query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr color='lime'>[b]Personal Notepad Updated![/b]"; } print "<hr color='lime'>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; print "<hr color='lime'><h3>Bank</h3>"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>19999) { print "Congratulations, you bought a bank account for \$20,000! [url='index.php']Start using my account[/url]"; mysql_query("UPDATE users SET money=money-20000,bankmoney=0 WHERE userid=$userid",$c); } else { print "You do not have enough money to open an account. [url='index.php']Back[/url]"; } } else { print "Open a bank account today, just \$20,000! [url='index.php?buy']> Yes, sign me up![/url]"; } } function index() { global $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 0.3%. <table width='75%' border='2' bordercolor='#lime'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 0% of the money you deposit, rounded up. The maximum fee is \$0.<form action='index.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='index.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*0/100); if($fee > 0) { $fee=0; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid",$c); print "You hand over \${$_POST['deposit']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='index.php']> Back[/url]"; } } function withdraw() { global $ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; mysql_query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid",$c); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='index.php']> Back[/url]"; } } $h->endpage(); ?>
×
×
  • Create New...