
bladewolf2010
Members-
Posts
369 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by bladewolf2010
-
I added you onto msn
-
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
-
<?php /** * Layout made by: Shaved92bravada Idea came from another post on CE * Rest of code is just standard V2 MCcodes * Made as a free mod so it is not to be sold. */ global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "<table width=145 class=menu><th>Main</th><tr><td> [url='hospital.php']Hospital ($hc)[/url]</td></tr> <tr><td>[url='inventory.php']Inventory[/url]</td></tr>"; } elseif($ir['jail']) { print "<table width=145 class=menu><th>Main</th><tr><td> [url='jail.php']Jail ($jc)[/url]</td></tr> <tr><td>[url='inventory.php']Inventory[/url]</td></tr>"; } else { print "<table width=145 class=menu><th>Main</th><tr><td> [url='index.php']Home[/url]</td></tr> <tr><td>[url='streets.php']Explore Streets<font color='red'><blink>(new)</blink></font>[/url]</td></tr> <tr><td>[url='inventory.php']Inventory[/url]</td></tr>"; } if($ec > 0) { print "<tr><td>[url='events.php']Events ($ec)[/url]</td></tr>"; } else { print "<tr><td>[url='events.php']Events (0)[/url]</td></tr>"; } if($mc > 0) { print "<tr><td>[url='mailbox.php']Mailbox ($mc)<image src='mail.jpg'>[/url]</td></tr>"; } else { print "<tr><td>[url='mailbox.php']Mailbox (0)[/url]</td></tr>"; } if($ir['jail'] and !$ir['hospital']) { print "<tr><td>[url='gym.php']Jail Gym[/url]</td></tr> <tr><td>[url='hospital.php']Hospital ($hc)[/url]</td></tr>"; } else if (!$ir['hospital']) { print "<tr><td>[url='explore.php']Explore[/url]</td></tr> <tr><td>[url='gym.php']Gym[/url]</td></tr> <tr><td>[url='criminal.php']Crimes[/url]</td></tr> <tr><td>[url='job.php']Your Job[/url]</td></tr> <tr><td>[url='education.php']Local School[/url]</td></tr> <tr><td>[url='hospital.php']Hospital ($hc)[/url]</td></tr> <tr><td>[url='jail.php']Jail ($jc)[/url]</td></tr>"; } else { print "<tr><td>[url='jail.php']Jail ($jc)[/url]</td></tr>"; } print "<tr><td>[url='/forums']Forums[/url]</td></tr>"; if($ir['new_announcements']) { print "<tr><td>[url='announcements.php']Announcements ({$ir['new_announcements']})[/url]</td></tr>"; } else { print "<tr><td>[url='announcements.php']Announcements (0)[/url]</td></tr>"; } print "<tr><td>[url='newspaper.php']Newspaper[/url]</td></tr> <tr><td>[url='search.php']Search[/url]</td></tr>"; $qq=$db->query("SELECT * FROM cities1 WHERE cityowner1={$ir['userid1']}"); //userid1 might be a seperate table to test the mod. if($db->num_rows($qq) >0) { print "[url='cityadmin.php']City Admin Panel[/url] "; } if(!$ir['jail'] && $ir['gang']) { print "<tr><td>[url='yourgang.php']Your Gang[/url]</td></tr>"; if(!$ir['jail'] && $ir['gang']) { print "<tr><td>[url='yourgang.php']Your Gang[/url]</td></tr>"; } print "<th>[b]Personal:[/b]</th> <tr><td>[url='preferences.php']Preferences[/url]</td></tr> <tr><td>[url='preport.php']Player Report[/url]</td></tr> <tr><td>[url='breport.php']Bug Report<font color='red'><blink>(new)</blink>[/url]</td></tr> <tr><td>[url='helptutorial.php']Help Tutorial[/url]</td></tr> <tr><td>[url='gamerules.php']Game Rules[/url]</td></tr> <tr><td>[url='viewuser.php?u={$ir[']My Profile[/url]</td></tr> <tr><td>[url='logout.php']Logout[/url]</td></tr> </table>"; ?>
-
Parse error: syntax error, unexpected $end in /home/rainofhe/public_html/mainmenu.php on line 87 line 87 ?>
-
same error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rainofhe/public_html/mainmenu.php on line 68
-
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rainofhe/public_html/mainmenu.php on line 68 64-75 print " <tr><td>[url='newspaper.php']Newspaper[/url]</td></tr> <tr><td>[url='search.php']Search[/url]</td></tr>"; $qq=mysql_query("SELECT * FROM cities1 WHERE cityowner1=$ir[userid1]"); if(mysql_num_rows($qq) > 0) { print "[url='cityadmin.php']City Admin Panel[/url] "; } if(!$ir['jail'] && $ir['gang']) { print "<tr><td>[url='yourgang.php']Your Gang[/url]</td></tr>"; }
-
Email validation my 1st MOD on MWG!
bladewolf2010 replied to kcmajor36's topic in Free Modifications
lol I do to >.< that link don't even come with v2 its v1 i think.. I'm all legit mate :) I buy all my scripts or make my own (attempt) Sorry for posting the link -
Email validation my 1st MOD on MWG!
bladewolf2010 replied to kcmajor36's topic in Free Modifications
lol I don't need to ask help yet tho. Well I do for my monorail but eh -
Email validation my 1st MOD on MWG!
bladewolf2010 replied to kcmajor36's topic in Free Modifications
"Email validation my 1st MOD on MWG! " That is what he said. says MY 1st MOD on MWG! -
Email validation my 1st MOD on MWG!
bladewolf2010 replied to kcmajor36's topic in Free Modifications
Can't really call a script you got from google yours :) -
the #'s if ( $tp < 5000 ) { return "#1 First Newbie"; } else if ( $tp < 10000 ) { return "#2 Newbie"; } else if ( $tp < 20000 ) { return "#3 Beginner"; } else if ( $tp < 40000 ) { return "#4 Not Experienced"; } else if ( $tp < 80000 ) { return "#5 Rookie"; } else if ( $tp < 160000 ) { return "#6 Average"; } else if ( $tp < 320000 ) { return "#7 Good"; } else if ( $tp < 640000 ) { return "#8 Very Good"; } else if ( $tp < 1280000 ) { return "#9 Greater Than Average"; } else if ( $tp < 2360000 ) { return "#10 Experienced"; } else if ( $tp < 4720000 ) { return "#11 Highly Experienced"; } else if ( $tp < 9440000 ) { return "#12 Honoured"; } else if ( $tp < 18880000 ) { return "#13 Highly Hounoured"; } else if ( $tp < 39960000 ) { return "#14 Respect King"; } else if ( $tp < 79812000 ) { return "#15 True Champion"; }
-
How do i make it so ppl can see there rank?
-
I added you danny
-
LOL I rather have real programmers help me :P
-
Don't feel bad php is my weak point to :P
-
this is in global_func function get_gamerank($level, $stats) { $tp=($level*$level) * 3000 + ($housevalue) + (($stats['strength']+$stats['agility']+$stats['guard']+$stats['labour']+$stats['IQ']) * 10); if ( $tp < 5000 ) { return "#1 First Newbie"; } else if ( $tp < 10000 ) { return "#2 Newbie"; } else if ( $tp < 20000 ) { return "#3 Beginner"; } else if ( $tp < 40000 ) { return "#4 Not Experienced"; } else if ( $tp < 80000 ) { return "#5 Rookie"; } else if ( $tp < 160000 ) { return "#6 Average"; } else if ( $tp < 320000 ) { return "#7 Good"; } else if ( $tp < 640000 ) { return "#8 Very Good"; } else if ( $tp < 1280000 ) { return "#9 Greater Than Average"; } else if ( $tp < 2360000 ) { return "#10 Experienced"; } else if ( $tp < 4720000 ) { return "#11 Highly Experienced"; } else if ( $tp < 9440000 ) { return "#12 Honoured"; } else if ( $tp < 18880000 ) { return "#13 Highly Hounoured"; } else if ( $tp < 39960000 ) { return "#14 Respect King"; } else if ( $tp < 79812000 ) { return "#15 True Champion"; } } { global $db; global $ir,$userid,$c; $q=$db->query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.$mykey > $stat AND us.userid != $userid AND u.user_level != 0") ; return $db->fetch_single($q)+1; } error is Fatal error: Call to a member function query() on a non-object in /home/rainofhe/public_html/global_func.php on line 332
-
neither of them get the get_gamerank from global_func
-
doesnt get rank
-
echo sprintf('Rank: %s ", number_format.get_gamerank.'); gives error of Warning: sprintf() [function.sprintf]: Too few arguments in /home/rainofhe/public_html/viewuser.php on line 105
-
Now it doesn't change my race it makes it blank
-
yay i fixed that to
-
next error when i click on race change Fatal error: Call to undefined function conf_race_change() in /home/rainofhe/public_html/preferences.php on line 17 I a fail coder
-
OMG!!!!!! Thank you so much :) I fixed my own error with a lot of help ^_^ Thank you
-
Lol i'll try later :)