
www.mygunwars.com
Members-
Posts
95 -
Joined
-
Last visited
Never
www.mygunwars.com's Achievements
Newbie (1/14)
0
Reputation
-
Finding Items in the city
www.mygunwars.com replied to www.mygunwars.com's topic in General Discussion
Re: Finding Items in the city Thanks I will add it killah -
A friend of mine coded this for me and i dont know if it right. { $iq=$db->query("SELECT * FROM items WHERE itmbuyable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; $db->query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); event_add($userid,"You found a {$r['itmname']} While Walking Around the city.",$c); } Users have been geting items that dont exist.
-
[mccode] Main menu users online count
www.mygunwars.com replied to Modern-Empires's topic in Free Modifications
Re: main menu users online count Nice I have been trying to find out how to add that one thanks man :-D -
Re: URL Image gif is what I use
-
[mccode v2] Enhanced Hall of fame COMPLETED!
www.mygunwars.com replied to Haunted Dawg's topic in Free Modifications
Re: Enhanced Hall of fame [v2] COMPLETED! I need to add highest mineing level. How do I add it killah??? -
Re: [MOD] Auto Hide Game Pages Why would I add that and where???
-
Re: [FREE] [V2] Ian's Investments Nice mod I add it :-D
-
Re: URL Image Ok kool thanks
-
[mccode v2] Enhanced Hall of fame COMPLETED!
www.mygunwars.com replied to Haunted Dawg's topic in Free Modifications
Re: Enhanced Hall of fame [v2] what and you can't? Im still learning how to code. :x -
[mccode v2] Enhanced Hall of fame COMPLETED!
www.mygunwars.com replied to Haunted Dawg's topic in Free Modifications
Re: Enhanced Hall of fame [v2] You should also add higist mining level. -
Re: [v1] Issue a Threat [FREE] Nice I added it in my site :-D
-
Re: Simple Trades [V2] Can some one tell me how to fix this??? Every time a user gose and trades this mesage comes up: You already have a trade pending completion. Please wait until it is over. But they dont
-
[mccode v2] Updated Display Pic System
www.mygunwars.com replied to Richard's topic in Free Modifications
Re: Updated Display Pic System [V2] ok thanks but where in the file after what? -
Re: [FREE][V2] Club Mod (my version) Anytime War_Hero I love this mod good work :-D
-
Re: [FREE][V2] Club Mod (my version) Ok thanks but them I got one more: Parse error: syntax error, unexpected ';' in /home/mygun4/public_html/popularitytrade.php on line 197 But Just add it on line 197 $_POST['ppointscrys'] = abs((int) $_POST['ppointscrys']); So here is NEW popularitytrade.php all fixed: <?php /********* Created by: War_Hero Free for: CE Members NOT FOR SALE **********/ include "globals.php"; include "travellingglobals.php"; include "clubbing.php"; if($ir['jail'] OR $ir['hospital']) { die("You can't access this page when in hospital or jail. <a href = 'index.php' />Go Home</a>"); } print "<center /> <b /> <font color = 'yellow' />Your Popularity Points: {$ir['popularity']}</font> [/b] </center> "; switch($_GET['action']) { case 'willtrade': will_trade(); break; case 'moneytrade': money_trade(); break; case 'moneytradesub': money_tradesub(); break; case 'crystalstrade': crystals_trade(); break; case 'crystalstradesub': crystals_tradesub(); break; default: index(); break; } function index() { global $db,$ir,$userid; print "<h2 />Popularity Center</h2> Hello and welcome to the Popularity Center. Here, you can trade in your popularity points for different rewards/bonuses. What would you like to do? <table width = '70%' cellspacing = '1' class = 'table' /> <tr /> <th />Reward/Bonus</th> <th />Description</th> <th />Popularity Needed</th> <th />Trade In?</th> </tr> <tr /> <td />Will Refill</td> <td />Gives you [b]ONE[/b] Will refill</td> <td /> <font color = 'green' />20 Popularity</font> </td> <td /> <a href = 'popularitytrade.php?action=willtrade' />Trade</a> </td> </tr> <tr /> <td />Money Trade</td> <td />Gain [b]\$2,500[/b] per Popularity point</td> <td /> <font color = 'green' />1 Popularity</font> </td> <td /> <a href = 'popularitytrade.php?action=moneytrade' />Trade</a> </td> </tr> <tr /> <td />Crystals Trade</td> <td />Gain [b]15[/b] Points per Popularity point</td> <td /> <font color = 'green' />1 Popularity</font> </td> <td /> <a href = 'popularitytrade.php?action=crystalstrade' />Trade</a> </td> </tr> </table> Or would you like to go home? <form action = 'index.php' /> <input type = 'submit' value = 'Go Home' /> </form>"; } function will_trade() { global $db,$ir,$userid; $setwill = ($ir['maxwill']); if($ir['popularity'] == 0) { die("You don't have any Popoularity Points to trade in. <a href = 'popularitytrade.php' />Go Back</a>"); } elseif($ir['popularity'] < 20) { die("You don't have enough popularity points to trade in for a Will refill. <a href = 'popularitytrade.php' />Go Back</a>"); } elseif($ir['will'] == $ir['maxwill']) { die("You already have full Will. <a href = 'popularitytrade.php' />Go Back</a>"); } else { print "You traded in <font color = 'green' />20 Popularity Points</font> for a <b />100% Will refill[/b]. <a href = 'popularitytrade.php' />Go Back</a>"; $willfill = sprintf("UPDATE `users` SET `will` = '%d', `popularity` = `popularity` - '%d' WHERE `userid` = ('%u')", $setwill, 20, $userid); $db->query($willfill); } } function money_trade() { global $db,$ir,$userid; $_POST['ppoints'] = abs((int) $_POST['ppoints']); if($ir['popularity'] == 0) { die("You don't have any Popularity Points to trade in. <a href = 'popularitytrade.php' />Go Back</a>"); } else { print "<h2 />Trading for Money</h2> Welcome. Here, you can trade in your Popularity Points for money. <font color = 'blue' />Each Popularity Point is worth ".money_formatter(2500)."</font>. How many points would you like to trade in? <form action = 'popularitytrade.php?action=moneytradesub' method = 'post' /> <input type = 'text' name = 'ppoints' value = '1' /> <input type = 'submit' value = 'Trade Popularity Points' /> </form>"; } } function money_tradesub() { global $db,$ir,$userid; $_POST['ppoints'] = abs((int) $_POST['ppoints']); $trade = 2500; $total = $_POST['ppoints'] * $trade; if($ir['popularity'] < $_POST['ppoints']) { die("You don't have enough Popularity Points to trade in that much. <a href = 'popularitytrade.php' />Go Back</a>"); } else { print "<h2 />Trading for Money</h2> You have traded {$_POST['ppoints']} Popularity Points for £".money_formatter($total,'').". Enjoy your money. <a href = 'popularitytrade.php?action=moneytrade' />Trade some more PP's for money</a> <a href = 'popularitytrade.php' />Trade some PP's for something else</a> <a href = 'index.php' />Go Home</a>"; $montrade = sprintf("UPDATE `users` SET `money` = `money` + '%d', `popularity` = `popularity` - '%d' WHERE `userid` = ('%u')", $total, $_POST['ppoints'], $userid); $db->query($montrade); } } function crystals_trade() { global $db,$ir,$userid; $_POST['ppointscrys'] = abs((int) $_POST['ppointscrys']); if($ir['popularity'] == 0) { die("You don't have any Popularity Points to trade in. <a href = 'popularitytrade.php' />Go Back</a>"); } else { print "<h2 />Trading for Points</h2> Here, you can trade in your Popularity Points for points. <font color = 'blue' />Each Popularity Point is worth 15 points.</font> How many popularity points would you like to trade in? <form action = 'popularitytrade.php?action=crystalstradesub' method = 'post' /> <input type = 'text' name = 'ppointscrys' value = '1' /> <input type = 'submit' value = 'Trade Popularity Points' /> </form>"; } } function crystals_tradesub() { global $db,$ir,$userid; $_POST['ppointscrys'] = abs((int) $_POST['ppointscrys']); $ctrade = 15; $ctotal = $_POST['ppointscrys'] * $ctrade; if($ir['popularity'] < $_POST['ppointscrys']) { die("You don't have enough Popularity Points to trade in this much. <a href = 'popularitytrade.php' />Go Back</a>"); } else { print "<h2 />Trading for Points</h2> You have traded {$_POST['ppointscrys']} for $ctotal points. Enjoy your points. <a href = 'popularitytrade.php?action=crystalstrade' />Trade some more PP's for points</a> <a href = 'popularitytrade.php' />Trade some PP's for something else</a> <a href = 'index.php' />Go Home</a>"; $crystrade = sprintf("UPDATE `users` SET `popularity` = `popularity` - '%d', `crystals` = `crystals` + '%d' WHERE `userid` = ('%u')", $_POST['ppointscrys'], $ctotal, $userid); $db->query($crystrade); } } $h->endpage(); ?> Nice mod War_Hero +1 :-D