
Nicholas
Members-
Posts
467 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Nicholas
-
could you by any chance put the correct coding into the part of the script i put up top please to stop it?
-
i know there is few these but im not quite sure there is a suggestion box with the ability that only Admins and view the suggestion posted (in staff menu) first run this SQL CREATE TABLE IF NOT EXISTS `suggestions` ( `sug_id` int(11) NOT NULL auto_increment, `sug_posted` varchar(255) character set latin1 collate latin1_general_ci NOT NULL, `sug_from` int(11) NOT NULL, `sug_description` longtext character set latin1 collate latin1_general_ci NOT NULL, `sug_read` tinyint(2) NOT NULL, `sug_replyfrom` int(11) NOT NULL, `sug_status` varchar(255) character set latin1 collate latin1_general_ci NOT NULL, `sug_replytext` longtext character set latin1 collate latin1_general_ci NOT NULL, `sug_urgency` varchar(255) character set latin1 collate latin1_general_ci NOT NULL, `sug_iplogged` varchar(255) character set latin1 collate latin1_general_ci NOT NULL, PRIMARY KEY (`sug_id`) ) ENGINE=MyISAM ; then make a file called "staff_suggestions.php" and put this in it <?php include_once ('sglobals.php'); if (!function_exists('Error')) { function Error($Message) { echo '<span style="color: #FF0000;">Error! [i]',stripslashes($Message),'[/i]</span>'; exit(headers::endpage()); } } if (!function_exists('Access')) { function Access($Array) { global $ir; if (!in_array($ir['user_level'], array($Array))) { Error('Unauthorised Access.'); } } } echo '<div style="text-align: left; padding-left: 25px;"> <h2 style="text-decoration: underline;"><center>Suggestions Center</h2>'; $_GET['act'] = isset($_GET['act']) && ctype_alpha($_GET['act']) ? $_GET['act'] : FALSE; switch($_GET['act']) { default: Index(); break; } function Index() { Access(2); global $db; $_GET['Start'] = isset($_GET['Start']) ? $_GET['Start'] : 0; $Sug = $db->num_rows($db->query("SELECT `sug_id` FROM `suggestions`")); $Pages = ceil($Sug / 10); echo '<center>Pages:'; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b] '; } else { echo '[url="staff_suggestions.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url]'; } if($i % 25 == 0) { echo ' '; } } echo ' <center><table width=100% cellspacing=1 class="table" border="1" bordercolor="#636363"></center> <tr style="text-align: center;"> <th>ID</th> <th>About?</th> <th>Poster</th> <th>Suggestion</th> <th>Delete?</th> </tr>'; $Select = $db->query("SELECT `sug_id`, `sug_posted`, `sug_from`, `sug_description`, `sug_read`, `sug_replyfrom`, `sug_status`, `sug_replytext`, `sug_urgency`, `sug_iplogged` FROM `suggestions` ORDER BY `sug_id` ASC LIMIT ".$_GET['Start'].",10"); if ($db->num_rows($Select)) { while($Re = $db->fetch_row($Select)) { $Mp = $db->fetch_row($db->query("SELECT `username` FROM `users` WHERE `userid`='".$Re['sug_from']."'")); echo ' <tr> <td width=10%><center>[b]',number_format($Re['sug_id']),'[/b]</td> <td width=10%><center>',htmlspecialchars(stripslashes($Re['sug_urgency']), ENT_QUOTES, 'UTF-8'),'</td> <td width=20%><center>',stripslashes($Mp['username']),' [',number_format($Re['sug_from']),']</td> <td width=60%><center>',htmlspecialchars(stripslashes($Re['sug_description']), ENT_QUOTES, 'UTF-8'),'</td> <td><center><a href="suggestions.php?x=remove&report=',number_format($Re['sug_id']),'">Delete</td> </tr>'; } } else { echo '<td colspan="7" style="text-align: center;">There Are Currently No Suggestions!</td>'; } echo '</table>'; echo ' Pages:'; for($i=1; $i<=$Pages; ++$i) { $Start = ($i-1)*10; if ($Start == $_GET['Start']) { echo '[b]',number_format($i),'[/b]'; } else { echo '[url="staff_suggestions.php?act=Index&Start=',$Start,'"]',number_format($i),'[/url]'; } if($i % 25 == 0) { echo ' '; } } } echo '</div>'; $h->endpage(); ?> then make a file called "suggestions.php" and put in it <?php include "globals.php"; $sd=$db->query("SELECT * FROM `suggestions` WHERE `sug_from` = '$userid'"); if($_GET['x'] == "add" and $db->num_rows($sd) < 7) { if($_POST['urgency'] and $_POST['description']) { //Secure the webpage. My favourite :> $_POST['description']=str_replace("/n", " ", strip_tags($_POST['description'])); $time=time(); //Insert the time log. $ip=$_SERVER['REMOTE_ADDR']; //The users IP - logged. ha ha! $nf="Pending"; //The text for startup $db->query("INSERT INTO `suggestions` (`sug_id`, `sug_posted`, `sug_from`, `sug_description`, `sug_read`, `sug_replyfrom`, `sug_status`, `sug_replytext`, `sug_urgency`, `sug_iplogged`) VALUES ('NULL', '$time', '$userid', '$_POST[description]', '0', '0', '$nf', 'N/A', '$_POST[urgency]', '$ip');") or die("<center>Your Suggestion couldn't be processed at this time. Either contact an admin or try again later. Thanks and sorry for any inconvenience caused. [url='suggestions.php']<font color=white>Back[/url] </center>"); print "<center><font color=white>Your Suggestion has been added! [url='index.php']Go Back[/url]</center> "; $h->endpage(); exit(); } else { print " <center><form action='suggestions.php?x=add' method='post'> Suggestion: (include as much detail to your suggestions as possible, It will help us get a better Idea of what your suggestion) Idea For: <select name='urgency'> <option value='crimes'>Crimes</option> <option value='jobs'>Jobs</option> <option value='items'>Items</option> <option value='other'>Other</option> </select> <textarea name='description' cols=60 rows=10></textarea> <input type=submit value='Submit Your Suggestion'></form> </center>"; $h->endpage(); exit(); } } else if($ir['user_level'] > 1 and $_GET['x'] == "remove" and $_GET['report']) { $db->query("DELETE FROM `suggestions` WHERE `sug_id` = '$_GET[report]'"); print "<center><font color=white>Suggestion Report Removed [url='staff_suggestions.php']<font color=white>Go Back[/url]</center> "; $h->endpage(); exit(); } elseif($ir['user_level'] > 1 and $_GET['x'] == "reply" and $_GET['report']) { if($_POST['text']) { //Make sure the text is ready to go, clean and safe. $text=str_replace(array("<",">","/n"),array("","",""),$_POST['text']); $status=($_POST['status']); $db->query("UPDATE `suggestions` SET `sug_replyfrom` = '$userid', `sug_replytext` = '$text', `sug_status` = '$status' WHERE `sug_id` = '$_GET[report]'"); print "<center><font color=white>Suggestion has been Edited [url='suggestions.php']<font color=white>Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center>[b]<font color=white>Make a reply[/b] <form action='suggestions.php?x=reply&report=$_GET[report]' method='post'> Status: <select name='status'> <option value='Under Review'>Under Review</option> <option value='Need More Feedback'>Need More Feedback</option> <option value='Inappropriate'>Inappropriate</option> <option value='Cancelled'>Cancelled</option></select> Reply: <textarea name='text' cols=60 rows=11>Your reply here...</textarea> <input type=submit value='Submit Reply!'> </form></center>"; } } $h->endpage(); ?> in "mainmenu.php" put this link wherever you want... [url='suggestions.php']Game Suggestions[/url] and in "smenu.php" put this link anywhere you want [url='staff_suggestions.php']Suggestions Posted[/url] _____________________________________________________________________________________________________________________________________________ unless you want it so everyone can see the suggestions on the game on the "suggestions.php" file. change the information in "suggestions.php" into this <?php include "globals.php"; $sd=$db->query("SELECT * FROM `suggestions` WHERE `sug_from` = '$userid'"); if($_GET['x'] == "add" and $db->num_rows($sd) < 7) { if($_POST['urgency'] and $_POST['description']) { //Secure the webpage. My favourite :> $_POST['description']=str_replace("/n", " ", strip_tags($_POST['description'])); $time=time(); //Insert the time log. $ip=$_SERVER['REMOTE_ADDR']; //The users IP - logged. ha ha! $nf="Pending"; //The text for startup $db->query("INSERT INTO `suggestions` (`sug_id`, `sug_posted`, `sug_from`, `sug_description`, `sug_read`, `sug_replyfrom`, `sug_status`, `sug_replytext`, `sug_urgency`, `sug_iplogged`) VALUES ('NULL', '$time', '$userid', '$_POST[description]', '0', '0', '$nf', 'N/A', '$_POST[urgency]', '$ip');") or die("<center><font color=white>Your Suggestion couldn't be processed at this time. <font color=white>Either contact an admin or try again later. <font color=white>Thanks and sorry for any inconvenience caused [url='suggestions.php']<font color=white>Back[/url] </center>"); print "<center><font color=white>Your Suggestion has been added! [url='suggestions.php']<font color=white>Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center><h2><font color=white>Submit your Suggestion</h2></center> <center><table width=60% border=2 cellspacing=1 class='table'></center> <td><font color=red>Your IP logged: ".$_SERVER['REMOTE_ADDR']."</font> <font color=white>Your IP is logged for our benefit and yours, to ensure the Suggestions system is not being abused! <font color=white>Once submitted, your Suggestion will shown as Visible to all other players and authorized staff. <hr /> <font color=white>NOTE: This is only to place your Suggestions, nothing else. </td></tr></table> <center><form action='suggestions.php?x=add' method='post'> <font color=white>Idea For: <select name='urgency'><option value='Crimes'>Crimes</option><option value='Jobs'>Jobs</option><option value='Courses'>Courses</option><option value='New Items'>New Items</option><option value='Other Ideas'>Other Ideas</option></select> <font color=white>Suggestion: (include as much detail to your suggestions as possible, It will help us get a better Idea of what your suggestion) <textarea name='description' cols=60 rows=11></textarea> <input type=submit value='Submit Your Suggestion'></form> </center>"; $h->endpage(); exit(); } } else if($ir['user_level'] > 1 and $_GET['x'] == "remove" and $_GET['report']) { $db->query("DELETE FROM `suggestions` WHERE `sug_id` = '$_GET[report]'"); print "<center><font color=white>Suggestion Report Removed [url='suggestions.php']<font color=white>Back[/url]</center> "; $h->endpage(); exit(); } elseif($ir['user_level'] > 1 and $_GET['x'] == "reply" and $_GET['report']) { if($_POST['text']) { //Make sure the text is ready to go, clean and safe. $text=str_replace(array("<",">","/n"),array("","",""),$_POST['text']); $status=($_POST['status']); $db->query("UPDATE `suggestions` SET `sug_replyfrom` = '$userid', `sug_replytext` = '$text', `sug_status` = '$status' WHERE `sug_id` = '$_GET[report]'"); print "<center><font color=white>Suggestion has been Edited [url='suggestions.php']<font color=white>Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center>[b]<font color=white>Make a reply[/b] <form action='suggestions.php?x=reply&report=$_GET[report]' method='post'> Status: <select name='status'> <option value='Under Review'>Under Review</option> <option value='Need More Feedback'>Need More Feedback</option> <option value='Inappropriate'>Inappropriate</option> <option value='Cancelled'>Cancelled</option></select> Reply: <textarea name='text' cols=60 rows=11>Your reply here...</textarea> <input type=submit value='Submit Reply!'> </form></center>"; $h->endpage(); exit(); } } $_GET['st'] = abs((int) $_GET['st']); $st=($_GET['st']) ? $_GET['st'] : 0; print "<center><h2>[url='suggestions.php?x=add']Make a Suggestion[/url]</h2></center>"; $sd=$db->query("SELECT * FROM `suggestions` WHERE `sug_from` = '$userid'"); if($db->num_rows($sd) < 7) { print ""; } print "<center>[b]You can submit several Suggestions[/b] </center>"; if(!$_GET['selectBug']) { $reports=$db->num_rows($db->query("SELECT * FROM `suggestions`")); $shown=25; //How many rows should be shown in one row $pages=(int) ($reports/$shown)+1; if($membs % $shown == 1) { $pages--; } print "<center>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='suggestions.php?st=$stl']$i[/url]</center>"; } } if($ir["user_level"] > 1) { $man="<th><font color=white>Manage</th>"; $cols=8; $db->query("UPDATE `suggestions` SET `sug_read` = '1' WHERE `sug_read` = '0'"); } else { $cols=7; } print " <center><table width=90% border=2 cellspacing=1 class='table'></center> <tr style='background:black'> <th colspan={$cols}><font color=white>Viewing all reported Suggestions - </th> </tr> <tr style='background:black'> <th><font color=white>Ref</th> <th><font color=white>From</th> <th><font color=white>Regards</th> <th><font color=white>Suggested</th> <th><font color=white>Comments</th> <th><font color=white>Read</th> <th><font color=white>Status</th> ".$man."</tr>"; if(!$_GET['selectBug']) { $q=$db->query("SELECT * FROM `suggestions` ORDER BY `sug_posted` DESC LIMIT $st,10"); } else { $q=$db->query("SELECT * FROM `suggestions` WHERE `sug_id` = '$_GET[selectBug]' LIMIT 1;"); } if($db->num_rows($q) == 0) { print "<tr style='background:black'> <td colspan={$cols}><font color=white><center>There are no current reports been posted.</center></td> </tr>"; } while($r=$db->fetch_row($q)) { if($r['sug_from'] == $userid or $ir['user_level'] == 2 or $ir['user_level'] == 3) { $user_q=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[sug_from]'"); $p=$db->fetch_row($user_q); if($r['sug_replyfrom'] > 0) { $user_q2=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[sug_replyfrom]'"); $d=$db->fetch_row($user_q2); } $x=$r["sug_id"]; if($r['sug_read'] == 1) { $re="<font color=green>[b]Read[/b]</font>"; } else { $re="<font color=red>[b]No[/b]</font>"; } print " <tr style='background:black'> <td align=center><font color=white>".number_format($x)."</td> <td align=center>[url='viewuser.php?u={$x}']<font color=white>".$p['username']."[/url] [".$p['userid']."]</td> <td align=center><font color=white>".$r['sug_urgency']."</td> <td align=center><font color=white>".$r['sug_description']."</td> <td align=center>"; if($r['sug_replyfrom'] > 0) { print "[b]".$r['sug_replytext']." [i]Replied from [url='viewuser.php?u=$d[userid]']<font color=white>$d[username][/url][/i]"; } else { print "<center><font color=white>Still Under Review</center>"; } print " </td> <td align=center><font color=white>".$re."</td> <td align=center><font color=white>$r[sug_status]</td>"; if($cols == 8) { print " <td align=center> <font color=white>IP Logged: [b]".$r['sug_iplogged']."[/b]</font> [url='suggestions.php?x=remove&report={$x}']<font color=white>Remove[/url] [url='suggestions.php?x=reply&report={$x}']<font color=white>Make Reply[/url] [url='mailbox.php?action=compose&ID={$p[']<font color=white>Mail User[/url] </td>"; } print "</tr>"; } else { print "<tr style='background:black'><center> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> <td align=center><font color=white>Hidden</td> </center></tr>"; } } print "</table></center> "; if(!$_GET['selectBug']) { print "<center><font color=white>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='suggestions.php?st=$stl']<font color=white>$i[/url]</center>"; } } $h->endpage(); ?>
-
i dont think it worked m8 :(
-
doesnt look like he has the function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"></td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url] [url='voting.php'][b]Vote for {$set['game_name']} now for rewards![/b][/url] "; } on top of the function staffmenu() like most headers do.
-
hi... im wondering could anyone fix it for me? im trying to make it so say that the players get the $chance 1 (shown below the coding) in my streets which makes you lose money. but then they could go into say $-56 im wondering... can anyone fix this part the script below so it doesnt make their money go into $-1 or lower? it just automaticly goes to $0 not $-1 or lower. hopefully you know what im talking about :) if ($chance == 1) { $amnt=rand(1,125); if($ir['money'] > $amnt) { print "As you search the streets you see <font color=blue>Nickizzle</font>; he asks you for $$amnt and you tell him to piss off. Then he proceeds to smack the hell out of you. He takes the $$amnt anyway. "; $db->query("UPDATE users SET money=money-$amnt where userid=$userid",$c); $ir['money']-=$amnt; } else { print "As you walk the streets you see <font color=blue>Nickizzle</font> he asks you for $$amnt and you tell him to go away! so <font color=blue>Nickizzle</font> smacks you over the head and looks in your wallet. Finding it almost empty and just walks off with your wallet. "; $db->query("UPDATE users SET money=money-$amnt where userid=$userid",$c); } } ive tried changing $db->query("UPDATE users SET money=money-$amnt where userid=$userid",$c); into $db->query("UPDATE users SET money=money-$amnt > 0 where userid=$userid",$c); but when the players got the money taking chance it put there money onto $1 no matter how much money they got in hand. but if i changed it to this $db->query("UPDATE users SET money=money-$amnt where userid=$userid",$c); into $db->query("UPDATE users SET money=money-$amnt where userid=$userid >0",$c); just got a sql error when you came upto that chance.
-
on my globals.php it says this at bottom of it global $atkpage; if($atkpage) { $h->userdata($ir,$lv,$fm,$cm,0); } else { $h->userdata($ir,$lv,$fm,$cm); } global $menuhide; if(!$menuhide) { $h->menuarea(); } ?> you have global $atkpage; if($atkpage) { $h->userdata($ir,$lv,$fm,$cm,0); } else { $h->userdata($ir,$lv,$fm,$cm); } ?> maybe thats the problem?
-
NOTE: yes i have looked for it and the people that were selling it hasnt been on for months. im wondering can anyone make a item market for me where it has a quanitfier on it so say a player adds a item called... black sword for $1,000,000 and someone tries to buy the item it say this: You are going to buy this item for $1,000,000 are you sure you want to buy it? then you get two options saying Buy and No. but say that person didnt buy it... and then the next day the person who added the black sword desides to add anther black sword instead of it going in the item market like this black sword black sword i want it to go in like this black sword x2 then if someone tries to buy it then it will say: There is currently 2 black swords on for sale, how many do you want to buy? then you get a box that you type the number in but its value is already set on 1. then you get two options saying Buy and No. i also want it to be set up so say the item hasnt been brought for like 1 week, it will automaticly be sent back to that players inventory? hopefully you understand what i mean :) if you can make this can you email me what price you be willing to sell it for?
-
ok erm.... let me try and say it in a better way m8 :) in config.php file say it says... <?php $_CONFIG = array( 'hostname' => 'localhost', 'username' => 'blah_blah', 'password' => 'gangster', 'database' => 'blah_blah', 'persistent' => 0, 'driver' => 'mysql', 'code' => 'h372365g51cc8e9736657542fe771hn4' ); ?> the cron job cron setup be like this in the command slot. curl [url]http://www.yoursite.com/cron_day.php?code=h372365g51cc8e9736657542fe771hn4[/url] but change the yoursite.com into your games domain.
-
also if your using the mccodes v2 crons find in cron_hour.php require "class/class_db_{$_CONFIG['driver']}.php"; and under it put require "global_func.php"; that will fix the cron_hour.php also for the crons in Minute, Hour, Day, Month, Weekday put them in this order. cron_minute.php = * * * * * cron_fivemins.php = */5 * * * * cron_hour.php = 0 * * * * cron_day.php = 0 0 * * * then in the command do what eternal said curl [url]http://www.yoursite.com/cron_day.php?code=CONFIG.PHP[/url] CODE HERE change the /cron_day.php when you add another cron. and change that * * * * * blah blah bit.
-
hi, im not sure if this is the right place to ask but anyways... im wondering can anyone make a gang events log system like the attack logs, money xfer logs and etc... i have tried searching for it and tried making it myself but i cant figure it out... could anyone help? im wondering if you could make it so you have to type the gangs ID in and then you can see like the last 100 events done in the gang? Thanks, Nicholas.
-
you do know this post is like 8 months old? the files most probably been deleted by now lol.
-
AS Promised--Crack The Safe Updated Secured.
Nicholas replied to Joshua's topic in Free Modifications
ive got quick question about this mod? has anyone even won it yet the free one? as i even changed the free safe crack lines to $r1 = rand(100,101); $r2 = rand(10,11); $r3 = rand(1,2); but still no ones won it lol. also i looked at some of the lines and it says if($_POST['1digit'] != $rand1) if($_POST['2digit'] != $rand2) if($_POST['3digit'] != $rand3) does that mean the $r1 $r2 $r3 meant to be $rand1 $rand2 $rand3 or is it correct with the $r1, $r2, $r3 ?? -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
lol... happy? -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
no you didnt tell me to do that, but that was the problem i had because of them two " " i got an error but after that i got another error. lol. but its all fixed now finally :) -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
i think that would of worked if you had a sprintf fully modified viewuser but mine doesnt have any sprintf stuff in it. due to well idk how to code in that yet lol. as when i tried that... i got an error about a t-string on line $married_text = ($ir['married'] != "0") so i changed it into $married_text = ($ir['married'] != '0') but then i got another error lol. -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
i think i got it now... if($r['donatordays']) { $r['username'] = "<font color=gold>{$r['username']}</font>";$d="[img=donator.gif]"; } $m=$db->query("SELECT * FROM users WHERE userid='{$r['married']}'"); $par=$db->fetch_row($m); if($r['married'] > 0) { $partner = "<a href='viewuser.php?u={$par['userid']}'><font color=yellow> {$par['username']}</font></a>"; } else if($r['married'] == 0) { $partner = "<font color=red>Nope</font>"; } then i put [b]<center>Married:[/b] $partner where i wanted the text to appear. the way i fixed it was by changing... print " into $partner = " if($ir['married'] > 0) into if($r['married'] > 0) else if($ir['married'] into else if($r['married'] on your first function you done Mcfarlin. :) -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
yes because im checking my profile lol. -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
sorry wasnt at pc for few hours, and it didnt work. :( -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
i see... but is there any chance you know why its not showing N/A on viewuser? -
viewuser married status not working correctly? (FIXED)
Nicholas replied to Nicholas's topic in Game Support
that didnt work, thx for trying to help tho :) i also changed that line i done to $m=$db->query("SELECT * FROM users WHERE userid='{$r['married']}'"); $par=$db->fetch_row($m); if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=yellow>{$par['username']}</font>[/url]"; } else if($ir['married'] == 0) { $partner= "<font color=red>N/A</font>"; } but that didnt work nether... i guess its probably just my game... -
ok im having little trouble with adding something on viewuser... i added $m=$db->query("SELECT * FROM users WHERE userid='{$r['married']}'"); $par=$db->fetch_row($m); if($ir['married'] != 0) { $partner= "[url='viewuser.php?u={$par[']<font color=yellow>{$par['username']}</font>[/url]"; } else { $partner= "<font color=red>N/A</font>"; } under if($r['donatordays']) { $r['username'] = "<font color=gold>{$r['username']}</font>";$d="[img=donator.gif]"; } then i added this <td> [b]<center>Married:[/b] $partner </td></tr>"; ("; is there because its at the bottom of the list, doesnt make any errors on my game) anyways.... i put it under <tr> <td> [b]Crystals:[/b] {$r['crystals']} </td></tr><tr> it shows the people the 2 players are married to but... if i go on someone profile that isnt married it doesnt say Married: N/A anyone know why? hope you understand everything i just said in this post lol.
-
RE: mass mail notification acturally you wanna use $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid={$r['userid']}"); if you use that one and say you got like 5 members in your gang, your mailbox be Mailbox (5)
-
AS Promised--Crack The Safe Updated Secured.
Nicholas replied to Joshua's topic in Free Modifications
got it lol look for... switch($_GET['action']) { case "index": index(); break; case "safe_1": safe_1(); break; case "safe_2": safe_2(); break; case "safe_3": safe_3(); break; default: index(); break; } and add this on top. print "<h1>Crack The Safe</h1>"; if ($ir ['safetries']<= 0) { print "[b]<h3>You have already used up all your tries, come back tomorrow</h3>"; $h->endpage(); exit; } -
AS Promised--Crack The Safe Updated Secured.
Nicholas replied to Joshua's topic in Free Modifications
yeh same... im trying to figure out how to stop it going into negatives, not having much luck lol.