
Dylan
Members-
Posts
291 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Dylan
-
Re: What is the best Operating System Made by Microsoft Same here Media Centers been good for me
-
Re: Brothel V2 [FREE] Sounds sooo wrong :roll:
-
Re: Brothel V2 [FREE] looks alright
-
Re: Has Chedburn of TC gone nuts? Just read it if TC was in bete testing how did Dab use it or was it like public? :|
-
Re: Counting (nr game) 1962 <~~ Aunt was born :|
-
Re: Guess the next poster nope Extermination?
-
Re: [review]Serious Wars Game login is alright maybe redoing your register to match it well I register to see whats awaiting for me in the inside well I login in and the first thing that comes to my attention is a couple errors. Warning: Division by zero in /home/ehiagwin/public_html/mainmenu.php on line 10 Warning: Division by zero in /home/ehiagwin/public_html/mainmenu.php on line 11 Maybe you could fix that also the images on like all the pages is kinda annoying could make them look more professional but the game looks alright as others say get off free hosting if you have donators then get a real host as you already showed you have a real domain looks you alot more professional. But overall it is a nice game.
-
Re: Help with mccodes Log into cPanel go to "MySQL Databases" scroll down to "add user to database" add the correct user to a database on the thing that comes up find at top where is says [ ] ALL PRIVILEGES click that and hit make changes this should fix it *if your mysql.php is set to the right settings
-
Re: Help with mccodes Did you give the user permission to the database?
-
Re: some clever person help me Well depends Does the database and user exist?
-
Re: some clever person help me Don't have a database setup obviously the user you set don't exist or don't have access to the database present
-
Re: Fatal Error Yea pog it's hidden until the 5th city. <?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='cyberbank.php?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 $ir,$c,$userid,$h,$db; $_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(); ?> Pretty sure it works now
-
A Donator Pack System all Mccoders will want....
Dylan replied to Uridium's topic in General Discussion
Re: A Donator Pack System all Mccoders will want.... well post the code before I go off and download some useless program or w/e -
A Donator Pack System all Mccoders will want....
Dylan replied to Uridium's topic in General Discussion
Re: A Donator Pack System all Mccoders will want.... Don't he do this with all his mods...like the explore page etc..? -
Re: Counting (nr game) 1960 <~~ Start of a new decade :roll:
-
[mccode v2] Different User Profile & View User Page
Dylan replied to ishmell's topic in Free Modifications
Re: Different User Profile & View User Page Heres my version. <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); $m=$db->query("SELECT * FROM users WHERE userid={$r['married']}"); $par=$db->fetch_row($m); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Administrator"; } else if ($r['user_level'] == 3) { $userl="Senior Moderator"; } else if($r['user_level'] == 0) { $userl="NPC"; } else if($r['user_level'] == 4) { $userl="Moderator"; } else {$userl="Moderator in training"; } $lon=($r['laston'] > 0) ?date('F j, Y g:i:s a',$r['laston']) : "Never"; $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=green>{$par['username']}</font>[/url]"; } else { $partner= "<font color=red>N/A</font>"; } if($r['donatordays']) { $r['username'] = "<font color=green>{$r['username']}</font>";$d="[img=donator.png]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]<blink>Online</blink>[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<h3>Profile for {$r['username']}</h3> <table width=100% cellspacing=1 class='table'><tr style='background:gray'><th>General Info</th><th>Display Pictures</th></tr> <tr><td>Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Married: $partner Mood: {$r['mood']} Ratings: [url='rating.php?ID={$r['][img=add.png][/url] [b]{$r['goodratings']}[/b] up, [url='rating.php?ID={$r['][img=delete.png][/url][b]{$r['badratings']}[/b] down Rank: ".get_gamerank($r['level'],$r['hPRICE'],$r)." Signed Up: $sup Last Active: $lon Last Action: $str Last Login: $str2 Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']} Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=$db->query("SELECT * FROM referals WHERE refREFER={$r['userid']}"); print $db->num_rows($rr); print " Friends: {$r['friend_count']} Enemies: {$r['enemy_count']} Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "N/A"; } if($r['fedjail']) { print " [b]<font color=red>In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>In hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b]"; } if($r['jail']) { print " [b]<font color=red>In jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b] "; } print " <hr><h4>Game Links:</h4>[[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] [[url='sendcash.php?ID={$r[']Send Cash[/url]] "; if($set['sendcrys_on']) { print "[[url='sendcrys.php?ID={$r[']Send Crystals[/url]] "; } if($set['sendbank_on']) { if($ir['bankmoney'] >= 0 && $r['bankmoney'] >= 0) { print "[[url='sendbank.php?ID={$r[']Bank Xfer[/url]] "; } if($ir['cybermoney'] >= 0 && $r['cybermoney'] >= 0) { print "[[url='sendcyber.php?ID={$r[']CyberBank Xfer[/url]] "; } } print " [[url='attack.php?ID={$r[']Attack[/url]] [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [[url='jailuser.php?userid={$r[']Jail[/url]] [[url='mailban.php?userid={$r[']MailBan[/url]]"; } if($ir['donatordays'] > 0) { print " [[url='hackpc.php?ID={$r[']Hack Users PC[/url]] [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] "; } print "</td><td>"; if($r['display_pic']) { print "[img={$r[]"; } else { print "This user has no display pic!"; } $pics=$db->query("SELECT * FROM userimages WHERE imgUSER={$r['userid']}", $c); $pc=$db->num_rows($pics); print " [[url='userimages.php?XID={$r[']$pc uploaded images[/url]] "; if($r['personal'] == ON) { print "<hr><h4>Personal Details:</h4> [b]Name:[/b] {$r['name']} [b]Last Name:[/b] {$r['last']} [b]Age:[/b] {$r['age']} [b]Aim Of The Game:[/b] {$r['aog']} [b]MSN:[/b] {$r['msn']} [b]AIM:[/b] {$r['aim']} [b]AOL:[/b] {$r['aol']} [b]Yahoo:[/b] {$r['yahoo']} "; } else if($r['personal'] == OFF) { print " This Person Dose Not Want To Share There Personal Details."; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph']=@gethostbyaddr($r['lastip']); $r['lastiph']=checkblank($r['lastiph']); $r['lastip_loginh']=@gethostbyaddr($r['lastip_login']); $r['lastip_loginh']=checkblank($r['lastip_loginh']); $r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']); $r['lastip_signuph']=checkblank($r['lastip_signuph']); print "<hr><table width='100%' border='0' cellspacing='1' class='table'><tr><h3>Internet Info</h3></tr> <tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr> <tr><td class='h'>Last Hit</td><td>$r[lastip]</td><td>$r[lastiph]</td></tr> <tr><td class='h'>Last Login</td><td>$r[lastip_login]</td><td>$r[lastip_loginh]</td></tr> <tr><td class='h'>Signup</td><td>$r[lastip_signup]</td><td>$r[lastip_signuph]</td></tr></table>"; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form>"; } else { print " "; } print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?> -
Re: Counting (nr game) 1957
-
Re: Help With A Error wow I can't believe I missed that
-
Re: Help With A Error post your global_func file
-
Re: Counting (nr game) 1955 :mrgreen:
-
Re: MCCode v3 Dabs did not do a bad job on the DBS gaming engine it is easy to work with sure there are some bugs but like they say he is a 16yr old teenager there will be mistakes. I will give him props on it I am not gonna buy V3 *if ever comes out* right off the back I want to see a demo to see what it has etc.. what new features comes with or is it just a V2 spiced up.
-
Re: Multi IP Prevention Exactly md I have cable/dsl through cable one and I get a notification every once in a while *theres a IP conflict on the network* either my IP changes or theres does
-
Re: Help With A Error What gaming engine you on?
-
Re: Help With A Error umm try this } ("NOTE You will need to add the gang feature above, it isn't a typing function" user_dropdown($connection,$ddname='user',$selected=-1) { global $db;
-
Re: Template for Mccodes v2 Just look for html templates and fit it together on your login