Jump to content
MakeWebGames

--{A$H0}--

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by --{A$H0}--

  1. Re: [FREE] Bodyguard V2.0 my staff_items Isnt workin now
  2. Re: [mccode] Mining mod but i use V2 and that hassent got a "mysql.php" :mrgreen: :? :-o
  3. Re: [mccode] Mining mod Warning: include(mysql.php) [function.include]: failed to open stream: No such file or directory in /home/minemad/public_html/mine.php on line 9 Warning: include() [function.include]: Failed opening 'mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/minemad/public_html/mine.php on line 9 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/minemad/public_html/mine.php on line 11 :? :? :? What Do I Do Here?
  4. Re: ****FREE Mining mod****   That Is What It Should Be I Took Off The <td><tr>
  5. Re: [mccode] PUB Alterd Version Altered So All Prices In Centre <?php /*----------------------------------------------------- -- A product of Stage3Gaming -- http://www.stage3gaming.com -- Pub.php -- Modified By Sarunas -----------------------------------------------------*/ 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(!$_GET['spend']) { print "<h2>Pub</h2> Hi and welcome , what would you like?. Prices and payment options are listed below.     <h3>For The Clients</h3> <table border='1' width='90%' bordercolor='#939393'><tr background='header.jpg'><th>Alchohol Drinks</th><th>Price</th><th><center>Buy</th></tr><tr> <td><center>Juice</td><td><center>$1,000,000</td><td><center>Buy Juice</td></tr><tr> <td><center>Beer</td><td><center>$5,000,000</td><td><center>Buy Beer</td></tr><tr> <td><center>Brandy</td><td><center>$7,000,000</td><td><center>Buy Brandy</td></tr><tr> <td><center>Tequila</td><td><center>$10,000,000</td><td><center>Buy Tequila</td></tr></table>"; print " } else { if($_GET['spend'] == 'Juice') { if($ir['money'] <1000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+35,energy=0,money=money-1000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender \$1,000,000,and then drank your juice . You feel some of your will comming back to you. >Home</center>"; } } else if($_GET['spend'] == 'Beer') { if($ir['money'] <5000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+70,energy=0,money=money-5000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender $5,000,000, and then drank your beer. You feel some of your will comming back to you. >Home</center>"; } } else if($_GET['spend'] == 'Brandy') { if($ir['money'] <10000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+210,energy=0,money=money-10000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender \$10,000,000, and then drank your Brandy. You feel some of your will comming back to you. >Home</center>"; } } else if($_GET['spend'] == 'Tequila') { if($ir['money'] <10000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will-50,energy=+250,money=money-10000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender $10,000,000, and then drank your tequila. You feel Dizzy , Then you feel some of your energy comming back to you. >Home</center>"; } } } } $h->endpage(); ?> :-D
×
×
  • Create New...