Jump to content
MakeWebGames

hamster01

Members
  • Posts

    1,108
  • Joined

  • Last visited

    Never

Everything posted by hamster01

  1. Re: Backwards - sdrawkcaB !!!nuf os sti yhw si taht ,lol
  2. Re: **GAME FOR SALE** I'm really not even going to login, as what i see from your login page, I can only think of the other.
  3. Re: A Few Things I Want To Ask....... What do you want to know? Golden0's example is not the proper way. To check if it isn't the number specified you would use: if ($_GET['ID'] != 2){ echo 'The item is not item number two.'; exit; }   For your third question, you will need to make an external script to do that.  
  4. Re: A Few Things I Want To Ask....... Item id's isn't the same everywhere.
  5. Re: SQL Injections MD5 can't be decrypted.. They use a huge database.
  6. Re: V2 Auto Donator Problems I'll help you. Contact me :)
  7. Re: Best Website Evar!!11 me no likies babies: http://www.deviantart.com/deviation/55684419/
  8. Re: Why you code? Mine to, I just hate updating.. :(  
  9. Re: Streets.php and cyberbank.php help np. ;)
  10. Re: WOT SERVER SHALL I USE, PLEASE LOOK The cpanel shared hosting will do.
  11. Re: WOT SERVER SHALL I USE, PLEASE LOOK You must pay for them.
  12. Re: WOT SERVER SHALL I USE, PLEASE LOOK Registered Users: 7 No, you will want an reliable host. One that has about three years of experience in hosting. Try: www.GalaxyVisions.com  
  13. Re: So , What Do I Do Now???????????????????????????????????????????? They do allow Games to be hosted. You just cannot have crontabs, you have to pay for that.  
  14. Re: [TGM] Referal System [TGM] Actually no. We don't waste our time on mccode. Like me hobby is smf modifications. Most people here doesn't even know how to code smf style. Why: Mccode teach them useless and buggy techniques.   So make it? Was there really even a point to your post or do you just like to post that on everything that people post. If you are a good coder, any of this stuff is easy to make. It's just the fact people don't wanna take time to make it. It's easier just to buy it for a low price and put it in the game.
  15. Re: WOT SERVER SHALL I USE, PLEASE LOOK No, I really want to talk to Tim about this, people is just misusing his services. You will not be able to run any crons on it.
  16. Re: How do I use a type function on a normal page? I have found a script that has the same as smf's bcc, if not better. Had to modify it alot though. Ill have to dig for it ..
  17. Re: WOT SERVER SHALL I USE, PLEASE LOOK Learn to code. Then, study php.net like the bible. Then you will know what to do from there.
  18. Re: Streets.php and cyberbank.php help   <?php include "globals.php"; print "<h3>Cyber Bank</h3>"; if($ir['cybermoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>9999999) { print "Congratulations, you bought a bank account for \$10,000,000! [url='cyberbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-10000000,cybermoney=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$10,000,000! [url='cyberbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db,$ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['cybermoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 7%. <table width='75%' border='2'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$1,500,000.<form action='?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] It will cost you 7.5% of the money you withdraw, rounded up. The maximum fee is \$750,000.<form action='cyberbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['cybermoney']}' /> <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']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 1500000) { $fee=1500000; } $gain=$_POST['deposit']-$fee; $ir['cybermoney']+=$gain; $db->query("UPDATE users SET cybermoney=cybermoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); 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['cybermoney']} in the Cyber Bank.[/b] [url='cyberbank.php']> Back[/url]"; } } function withdraw() { global db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['cybermoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $fee=ceil($_POST['withdraw']*75/1000); if($fee > 750000) { $fee=750000; } $gain=$_POST['withdraw']-$fee; $ir['cybermoney']-=$gain; $db->query("UPDATE users SET cybermoney=cybermoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the teller hands it over after she takes the bank fees. [b]You now have \${$ir['cybermoney']} in the Cyber Bank.[/b] [url='cyberbank.php']> Back[/url]"; } } $h->endpage(); ?>
  19. Re: WOT SERVER SHALL I USE, PLEASE LOOK lol, you really should go read up on a few things ;) that isn't mcc even. ;)
  20. Re: New Mail Problem. The function from yourgang.php: function gang_staff_massmailer() { global $db,$ir,$c,$userid,$gangdata; if($_POST['text']) { $subj="This is a mass mail from your gang"; $q=$db->query("SELECT * FROM users WHERE gang='{$ir['gang']}'"); while($r=$db->fetch_row($q)) { $db->query("INSERT INTO mail VALUES('', 0, '{$ir['userid']}', '{$r['userid']}', unix_timestamp(),'$subj','{$_POST['text']}')"); print "Mass mail sent to {$r['username']}. "; } print "Mass mail sending complete! [url='yourgang.php?action=staff']> Back[/url]"; } else { print "[b]Mass Mailer[/b] <form action='yourgang.php?action=staff&act2=massmailer' method='post'> Text: <textarea name='text' rows='7' cols='40'></textarea> <input type='submit' value='Send' /></form>"; } }
  21. Re: [TGM] Referal System [TGM] This is so easy to make.
  22. Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2] hmm.. That gives me an idea. Need to speak with md..
  23. Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2] That query is also wrong. Proper: ALTER TABLE `users` ADD `cbank` INT(11) NOT NULL DEFAULT 0; sql delimiter: ;
  24. Re: WOT SERVER SHALL I USE, PLEASE LOOK umm.., smf? I have a few books of php,mysql >.>
  25. Re: A little mod i was trying to make.... havn't thought of that one, im used to reaching my 8meg limit :D
×
×
  • Create New...