
Modern-Empires
Members-
Posts
123 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Modern-Empires
-
Re: [v2] New Header this is an good mod and all but has anyone though a login page and register page?
-
Re: [mccode V2] Rate User['s] use thwe current SQL's Rating.php add this for it to go more than +1 <?php include "globals.php"; $ID = (int) ($_GET['ID']); $action = $_GET['action']; $ar=$db->query("SELECT * FROM usrate WHERE rater={$userid} AND rated={$ID}"); if($db->fetch_row($ar)) { echo 'You Already Rated This Person Today'; $h->endpage(); exit; } switch($action) { case 'goodrating': goodrating(); break; case 'badrating': badrating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function goodrating() { global $ir,$userid; $ID = $_GET['ID']; if($ID == $userid) { echo 'You cannot rate yourself.'; $h->endpage(); exit; } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_row($result)) { $ratings = $row['ratings']; } mysql_query("UPDATE users SET goodratings = goodratings+1 WHERE userid='{$ID}'"); mysql_query("INSERT INTO usrate values ({$userid},{$ID})"); echo 'You gave the user a good rating'; } } function badrating() { global $ir,$userid; $ID = $_GET['ID']; if($ID == $userid) { echo 'You cannot rate yourself.'; $h->endpage(); exit; } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_row($result)) { $ratings = $row['ratings']; } mysql_query("UPDATE users SET badratings = badratings+1 WHERE userid='{$ID}'"); mysql_query("INSERT INTO usrate values ({$userid},{$ID})"); echo 'You gave the user a bad rating'; } } $h->endpage(); ?> <center>Ratings: [url='rating.php?ID={$r[']<font color='green'>+ {$r['goodratings']}</font>[/url][url='rating.php?ID={$r['] <font color='red'> - {$r['badratings']}</font>[/url] </center>
-
Re: [mccode V2] Rate User['s] i followed all the details and it never goes above +1 and -1 and never moved above or down please help, i tried looking throu the codes please help
-
Re: [mccode v2] Create Organised Crime learn to code instead of getting people to do if for you,
-
Re: [mccode v2] Lottery can it be done?
-
Re: [mccode v2] Lottery i've seen it done one anouther game, they did somthing like tickets you brought *** x total tickets sold *** = **%
-
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [mccode v2] Themecreator 100% Completed Working Copy leave it out of the css and leave it in the header -
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [mccode v2] Themecreator 100% Completed Working Copy you want it to be 1.css body { background-color: #292929; background-image:url(lbg.png); margin-top: 0px; margin-bottom: 0px; font-family:Palatino Linotype;font-size:12px;color: white; scrollbar-base-color: black; scrollbar-arrow-color: red; scrollbar-DarkShadow-Color: black; } a:visited,a:active,a:link { color: gray;text-decoration: none; } a:hover { color: silver;text-decoration: overline underline;background: none; } table,tr,td { font-family:Palatino Linotype;font-size: 12px; } .button { font-family:Palatino Linotype; font-size:12; color:#ffffff; background-color: red; } } -
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [mccode v2] Themecreator 100% Completed Working Copy <link rel="stylesheet" type="text/css" href="{$t['ThemeID']}.css" /> put that after title, put you css part of header in a .css file name it 1.css then thats it -
Re: [mccode v2] Lottery nice mod but can a winning percentage be put in, so above how much you can buy there is a line saying you have a **% of winning the lottery,
-
Re: [mccode] Mcc Christmas Theme can you do the css again for this cos i think it would be good ever since christmas is coming real quick
-
Re: [mccode V1 V2] Chat Mod i get this error, basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1ec58a network: CleanupThread used 7 us network: Cache entry found [url: [url]http://www.modern-empires.com/IRCApplet.class[/url], version: null] network: Connecting [url]http://www.modern-empires.com/IRCApplet.class[/url] with proxy=DIRECT network: Connecting [url]http://www.modern-empires.com:80/[/url] with proxy=DIRECT basic: Loading Java Applet ... network: Connecting [url]http://www.modern-empires.com/IRCApplet.class[/url] with cookie "PHPSESSID=a044c46e2eb773353b7f5dc7453dcff7" network: ResponseCode for [url]http://www.modern-empires.com/IRCApplet.class[/url] : 304 network: Encoding for [url]http://www.modern-empires.com/IRCApplet.class[/url] : null network: Disconnect connection to [url]http://www.modern-empires.com/IRCApplet.class[/url] basic: error: Unknown constant tag 13 in class file IRCApplet. java.lang.ClassFormatError: Unknown constant tag 13 in class file IRCApplet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source) at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception: java.lang.ClassFormatError: Unknown constant tag 13 in class file IRCApplet it's the red X but i got the new version which says the problem
-
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [mccode v2] Themecreator 100% Completed Working Copy surely doing a user custom background that users can create would be good, like get the css connecting to the database, and in the prefrances it would have an option to choose what types, eg. print" <h3>Personal Theme</h3>"; } if ( i would put donator's only here); { else print "You are not a Donator"; } Print " Backround image <textbox='image.jpg'> and in the css it would be like Backround-image= url ({$r['userbkimg']} etc etc i knmow i'mnot thatgood but you get the idea, surely it could be done?? -
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy tho i have seen it done before on mccodes V2, it's the same basic as you did in the header but do it in the css file e.g backround-color: #000000; to something like backround-color: {$r['usercolor']}; i did something similer on my old game ages ago, the only problem had with this is getting thie globals to work in the css files -
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy solved it, this theme editeris fantastic, i'm now using it and no problems whatsoever -
[mccode v2] Themecreator 100% Completed Working Copy
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [MOD UPDATE} V2 Themecreator 100% Completed Working Copy i dont get this bit, can youput more detail and where else in header do you add global $db,$ir,$c,$h,$userid,$set,$theme; $q = $db->query("SELECT ThemeID FROM users WHERE userid=$userid",$c); $t = $db->fetch_row($q); -
[MOD] V2 Theme Changer as Promised 96% completed
Modern-Empires replied to Uridium's topic in Free Modifications
Re: [MOD] V2 Theme Changer as Promised 96% completed been waiting forthis mod to come out forso long, waiting for the restof it to be completed, w00t w00t -
[mccode] Main menu users online count
Modern-Empires replied to Modern-Empires's topic in Free Modifications
Re: [mccode] Main menu users online count i just want to say thanks to all the people who have added my mod to their game, i've seen a few people use it now so i would just like to say thanks for using my mod -
Re: [FREE] Bodyguard V2.0 i followed all the rules and did everthing it told me upto the add item then i get this my item codes are unedited so it should go bt they dont can some1 please post here what i can do, thanks
-
Re: [mccode] Pac Man Game V2 version <?php /*----------------------------------------------------- -- Pac Man By [url]http://freegoodgames.net[/url] -- Converted to work with MCCodes By Latino Heat -- Converted to V2 by Peter -----------------------------------------------------*/ session_start(); require "globals.php"; print "<h3/>Pac Man<h3/>"; print "<center><embed src=http://freegoodgames.net/swf/flashmanwm.swf type='application/x-shockwave-flash' width='720' height='480'></embed> [url='index.php']> Back[/url]</center>"; $h->endpage(); ?>
-
Re: Crons problem i'm having the same problem but with the cron_minte.php file, so yh can some1 help us
-
Re: [mccode v2] Secure Bank! this IS NOT MINE good mod but i found a little error so here is there code with the little fix, good work guys <?php include (DIRNAME(__FILE__) . "/globals.php"); // Secured Up By Karlos // Helped By MTG To Fix A Few Errors print "<h3>Bank</h3>"; if($ir['bankmoney']>-1) { $_GET['action'] = isset($_GET['action']) && is_string($_GET['action']) ? strtolower(trim($_GET['action'])) : ""; switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>4999) { print "Congratulations, you bought a bank account for \$5,000! [url='bank.php']Start using my account[/url]"; $sql = sprintf("UPDATE users SET money = money - %u WHERE (userid = %u)", 5000, $userid); $db->query($sql); } 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 \$5,000! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir, $c, $userid, $h; echo sprintf("[b]You currently have \$%s in the bank.[/b] ", number_format($ir['bankmoney'])); echo ("<table width='85%' cellspacing=1 class='table'>"); echo ("<tr>"); echo ("<td width='50%'>[b]Deposit money[/b] "); echo ("It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000.<form action='bank.php?action=deposit' method='post'>"); echo sprintf("Amount: <input type='text' name='deposit' value='%s' /> ", $ir['money']); echo ("<input type='submit' value='Deposit' /></form></td>"); echo ("<td width='50%'>[b]Withdraw money[/b] "); echo ("There is no fee on withdrawals.<form action='bank.php?action=withdraw' method='post'>"); echo sprintf("Amount: <input type='text' name='withdraw' value='%s' /> ", $ir['bankmoney']); echo ("<input type='submit' value='Withdraw' /></form></td>"); echo ("</tr>"); echo ("</table>"); } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit'] = (float) $_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 > 3000) { $fee=3000; } $gain=$_POST['deposit']-$fee; $ir['money']+=$gain; $sql = sprintf("UPDATE users SET bankmoney = bankmoney + %u, money = money - %u WHERE (userid = %u)", @intval($gain), $_POST['deposit'], $userid); $db->query($sql); echo sprintf("You hand over \$%s to be deposited, after the fee is taken (\$%s), \$%s is added to your account. [b]You now have \$%s in the bank.[/b] [url='bank.php']> Back[/url]", number_format($_POST['deposit']), number_format($fee), number_format($gain), number_format($ir['bankmoney'])); } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw'] = (float) $_POST['withdraw']; if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $_POST['withdraw'] = (float) $_POST['withdraw']; $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; $sql = sprintf("UPDATE users SET bankmoney = bankmoney - %u, money = money + %u WHERE (userid = %u)", $gain, $gain, $userid); $db->query($sql); echo sprintf("You ask to withdraw %s, the banking lady grudgingly hands it over. [b]You now have \$%s in the bank.[/b] [url='bank.php']> Back[/url]", number_format($gain), number_format($ir['bankmoney'])); } } } $h->endpage(); ?>
-
Re: [mccode v2] cars_mod staff_cars this is a fanastic mod, i've been looking for a mod like this for months, i had to do it all thro phpmyadmin, thanks alot mate good work, 8-)