Jump to content
MakeWebGames

webster2001

Members
  • Posts

    98
  • Joined

  • Last visited

Everything posted by webster2001

  1. Re: Anolog Clock [All versions]     I could say the same about some of your mods =P
  2. Simple easy clock to add to your website.   <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='100' height='94'> <param name='movie' value='http://www.csalim.com/clocks/205420.swf' /> <param name='quality' value='high' /> <param name='wmode' value='transparent' /> <embed wmode='transparent' src='http://www.csalim.com/clocks/205420.swf' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='100' height='94'></embed> </object>   Add this anywhere to your website and you will get a nice Anolog-clock. Any help needed please mail me
  3. Re: random.php   mi speling iz absolultly perfcet LOL :mrgreen: :mrgreen: :mrgreen:
  4. Re: crystal bank   OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php"; It does not have to be include "globals.php"; it could be require "globals.php"; for V2 Also it does not have to be require "global_func.php"; it could be include "global_func.php"; Include just means include it if the files exists whereas require means the file has got to exist otherwise it will not display
  5. Re: Updated Money & Crystal Bank [V2]   Yeah it pobly is but this was a quick code i did that i thought some people might like.
  6. Re: Updated Money & Crystal Bank [V2]   Oh yeah thanks lol I forgot to stick that on the end... :-D :-D   ALTER TABLE `users` ADD `bankcrystal` BIGINT( 15 ) NOT NULL DEFAULT '0'; If you use this one you get more than 2.147 ... billion
  7. I made this mod earlier and i thought you lot might like it :mrgreen: I just combined the Normal Money bank and a crystal bank together This is only for V2 but please post if you want me to convert it.   <?php require "globals.php"; print "<center><h3>Bank</h3></center><hr />"; if($ir['bankmoney']>-1) { switch($_GET['action']) { case "crydeposit": crydeposit(); break; case "crywithdraw": crywithdraw(); break; case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>49999) { print " <center> Congratulations, you bought the crystal and money bank for \$50,000! <a href='bank.php'> Start using my accounts! </a> </center>"; $db->query("UPDATE users SET money=money-50000,bankcrystal=0,bankmoney=9 WHERE userid=$userid",$c); } else { print " <center> You do not have enough money to open the crystal and money bank accounts! <a href='index.php'> Home </a> </center>"; } } else { print " <center> Open a crystal and money bank account today, just \$50,000! <a href='bank.php?buy'> Yes, sign me up! </a> </center>"; } } function index() { global $db,$ir,$c,$userid,$h; print " <center>\n[b]You currently have {$ir['crystalbank']} crystals in the bank.[/b] [b]You currently have {$ir['bankmoney']} money in the bank.[/b] There is no interest involved with Crystals, only for Money </center><center> <table width='75%' border='1'> <th background='tableup.jpg' width=50%><font color=white>[b]Deposit Crystals</th> <th background='tableup.jpg' width=50%><font color=white>[b]Withdraw Crystals</th> <tr><td> <center>There is no fee on crystals deposits. <form action='bank.php?action=crydeposit' method='post'> [b]Amount:[/b] <input type='text' name='deposit' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td> <td> <center>There is no fee on crystal withdrawals. <form action='bank.php?action=crywithdraw' method='post'> [b]Amount:[/b] <input type='text' name='withdraw' value='{$ir['crystalbank']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> <tr><td background='tableup.jpg'><font color=white>[b]<center>Deposit Money[/b]</center></font></td><td background='tableup.jpg'><font color=white>[b]<center>Withdraw Money[/b]</center></font></td></tr> <tr><td><center>Todays fee is 15% of the money you deposit, Max fee is \$30,000<form action='bank.php?action=deposit' method='post'> [b]Amount:[/b] <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></center></td> <td><center>There is no fee on Money withdrawals. <form action='bank.php?action=withdraw' method='post'> [b]Amount:[/b] <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></center></td></tr> </table>"; } function crydeposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { print "<center> You do not have enough crystals to deposit this amount. </center>[url='index.php']Home[/url]</center>"; } else { $gain=$_POST['deposit']-$fee; $ir['crystalbank']+=$gain; $db->query("UPDATE users SET crystalbank=crystalbank+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid",$c); print "<center> You hand over {$_POST['deposit']} crystals and they are deposited. You now have [b]{$ir['crystalbank']}[/b] crystals in the bank. [url='bank.php'] Back[/url]"; } } function crywithdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['crystalbank']) { print "<center> You do not have enough banked crystals to withdraw this amount. [url='bank.php']Back[/url]</center>"; } else { $gain=$_POST['withdraw']; $ir['crystalbank']-=$gain; $db->query("UPDATE users SET crystalbank=crystalbank-$gain, crystals=crystals+$gain where userid=$userid",$c); print "<center>You withdraw $gain crystals from your bank. You now have [b]{$ir['crystalbank']}[/b] crystals in the bank. [url='bank.php'] Back[/url]</center>"; } } 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 > 30000) { $fee=30000; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$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['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdraw() { global $db,$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; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } $h->endpage(); ?>   Please post your thoughts on this mod :mrgreen: Cheers
  8. Re: Delete User DP Yeah but this does it all at once, and it also means you dont have to remember how much money etc for the specific pack they had.
  9. Re: [V2] Daily Donator Reward [V2]   Works with either, Include just puts it there if the file exists, if it doesnt then i wont displayer it where as require means the file has got to exist for it to show up or else you will get an error
  10. Re: Delete User DP   Yeah but this one takes off the money & crystals & iq they got not just the days which makes it quicker to take the amounts off Nice simple little mod i think
  11. Re: Main Menu   What part of it? No offense but if you can't do very basic CSS, theres no way you should be running a game. Also, i've been to the w3schools website, and if you look around it shouldn't be to hard to navigate. I found that it was setup quite nicely, in terms of easily being able to get where you want to go, for the right info... so don't be so quick to demand help, just look at the website, and you'll find it. Good luck with your game.   Lol i didnt actually go to it....
  12. Re: Main Menu   What part of it?
  13. Re: Main Menu   How do i do that?
  14. How do i make it so that when you hover over a option on the menu it comes up in Bold and in red. I only want this to happen in main menu though not everywhere.
  15. What do i add to mainmenu.php to make it so that when you hover over a link it underlines it and makes it gold. Cheers.
  16. Re: Get your site free traffic!   Going abit of the subject. Yeah maybe, but he does have a point there.
  17. Re: Please help....   Thats a server problem it looks like...   Nop i managed to fix it click home then change the permissions of index_html to 0777 i think did it.
  18. Re: Please help....   ive done that but when i click save on file edit for config.php i get this:   File Saved open config.php failed: Permission denied at cpanel.pl line 590 Carp::croak('open config.php failed: Permission denied') called at /usr/local/cpanel/Cpanel/Fileman.pm line 1240 Cpanel::Fileman::fmsavefile('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 590 main::__ANON__('%2fhome%2fwebcn%2fpublic_html', 'config.php', '<?php^M^J$_CONFIG = array(^M^J\'hostname\' => \'localhost\',^M^J\'user...', 1, 1) called at cpanel.pl line 1763 main::exectag('<cpanel Fileman="fmsavefile($FORM{\'dir\'},$FORM{\'file\'},$FORM...') called at cpanel.pl line 4806 main::dotag(undef) called at cpanel.pl line 4673 main::cpanel_parseblock('SCALAR(0x919fa24)') called at cpanel.pl line 4625 main::cpanel_parse('GLOB(0x9406234)') called at cpanel.pl line 1295 [a fatal error or timeout occurred while processing this directive]
  19. Re: Please help.... Thanks, ill try that as soon as i get my cpanel pw back to me... i forgot it lol
  20. I get this error on the login page and the register page of my game.   Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'webcn'@'localhost' (using password: YES) in /home/webcn/public_html/class/class_db_mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Access denied for user 'webcn'@'localhost' (using password: YES))   Anyone have a idea what it could be. Thanks
  21. Re: Errors   Whoops, sorry lol its works as well. cheers. PS NOTE TO SELF: never ask that again!!! :wink:
  22. I get this error which is:Fatal error: Call to a member function query() on a non-object in /home/webcn/public_html/pets.php on line 67 Line 67 is:$inv=$db->query("SELECT iv.*,i.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid WHERE iv.inv_userid={$userid} AND iv.inv_id={$id}",$c) or die(mysql_error()); Anyone have any ideas about a fix? If you need details on anything which may help the fix juts post here or PM me. Cheers, webster2001
  23. Re: HELP!!!!!!!!!!!!!!   Ive done that but now i get this error: QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM bf WHERE bfTO= The code is now like this: function index() { global $ir,$c,$userid,$db,$h,$bdata; $bf=$db->query("SELECT * FROM bf WHERE bfTO={$ir['business']}",$c); $fr=mysql_num_rows($bf); $be=$db->query("SELECT * FROM be WHERE beTO={$ir['business']}",$c); $en=mysql_num_rows($be);   Any one help? Tell me how you fix it and ill give you 10 credits
  24. I keep getting this error: Fatal error: Call to a member function query() on a non-object in /home/*****/public_html/yourbusiness.php on line 46 This is line 46 $bf=$db->query("SELECT * FROM bf WHERE bfTO={$ir['business']}",$c); Its mccodes v2 if u havent realised cheers! EDIT: Here is the lines above and below function index() { global $ir,$c,$userid,$h,$bdata; $bf=$db->query("SELECT * FROM bf WHERE bfTO={$ir['businesses']}",$c); $fr=mysql_num_arrays($bf); $be=$db->query("SELECT * FROM be WHERE beTO={$ir['business']}",$c); $en=mysql_num_rows($be);
  25. I know this is VERY simple but the standard mccodes explore.php looks really bad so i coded this myself:   <?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();print "<table width=75% border=1 bordercolor='#FFFFFF'><tr> <td width=25% align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2>Items central:</font>[/b]</u></font> [url='shops.php']Shopping Mall[/url] [url='itemmarket.php']Item Market[/url] [url='cmarket.php']Crystal Market[/url][url='dmarket.php']Donator Days market[/url] </td><td width=25% align=center valign=middle bgcolor='#000000'><font color=yellow>[b]<u><font size=2>High earners</font></u>[/b]</font> [url='estate.php']The Property centre[/url] [url='bank.php']HSBC Bank[/url] [url='monorail.php']Gatwick Airport[/url] [url='loanshark.php']Loanshark[/url] </td><td width=25% align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2>Games Center</font></u>[/b]</font> [url='cups.php']Pick a cup game[/url] [url='highlow.php']High/Low game[/url] [url='raffle.php']Raffle[/url] [url='slotsmachine.php?tresde=680']Slots machine 1[/url]</td></tr><tr><td align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2>Gangs</font></u>[/b]</font> [url='gangcentral.php']View existing gangs[/url] [url='gangwars.php']View Wars between gangs[/url] </td><td align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2>Crystal Trading</font></u>[/b]</font> [url='crystaltemple.php']Basic Crystal Trade[/url] [url='tradement.php']Advanced Crystal Trade[/url] </td><td align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2>Players</font></u>[/b]</font> [url='usersonline.php']Players Online[/url] [url='userlist.php']Player List[/url] [url='stafflist.php']Members of staff[/url] </td><td align=center valign=middle bgcolor='#000000'><font color=yellow><u>[b]<font size=2> Game Stats</font></u>[/b]</font> [url='stats.php']Game stats[/url] [url='halloffame.php']Hall of fame[/url] </td></tr></table>";?>   EDIT: Now works fine. Hope you like it.
×
×
  • Create New...