
gurpreet
Members-
Posts
834 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by gurpreet
-
Re: [mccode v2] Estate Recode I stil have this: # Jupiter Cost: $225Will Bar: 1500 # Sun Cost: $305Will Bar: 1750 # Milky Way Cost: $500Will Bar: 2250 Whats up with it?
-
Re: [V2] New Small Accuracy Mod [V2] The easiest thing i can think of doing is: NOTE: not tested, however, to my knowledge, should work ;) Replace the whole accuracy equation below <hr width=20%>"; With <hr width=20%>"; if($ir['totalhits'] < 1) { print "[b]Your Accuracy[/b] $acc [b]<font color='red'>You havn't made or hit anyone in the gangsta population. Please make an attack before we formulate your accuracy.</font>[/b]"; } else { if($ir['totalhits'] > 1){ print "[b]Your Accuracy[/b] $acc [b]<font color='green'>Total Hits:[/b]</font> {$ir['totalhits']} [b]<font color='red'>Total Misses:[/b]</font> {$ir['totalmisses']} "; } } $h->endpage(); ?> This doesn't give a % Eg. 59% accuracy.
-
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
gurpreet replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Also, you could add in you can only bite once every hour or something, you lose your hunger for blood...I started this event 3 days ago and someone has over 250 bites. -
[MCCODES v1_v2} Mp3 Webpage Player ( My Final Free Mod )
gurpreet replied to Uridium's topic in Free Modifications
Re: [MCCODES v1_v2} Mp3 Webpage Player ( My Final Free Mod ) It will have to be paid, as it's his last Free mod. Great mod Illusions, I'll probably buy your mods if you put some up. +1 -
Re: [McCodes V2] Streets Mod Say you had 99 turns, and you get 5 more...104 turns is over 100. You're saying where its less than 100
-
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
gurpreet replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Uhm, is it sposed to be the first 10 people to login once i start the event become a zombie? cos that happened. -
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
gurpreet replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Had to have the extra () GReat mod guys, i'd give +100 if I could. -
mccode-v2 Humans vs. Zombies EVENT mod [done, v1.0]
gurpreet replied to seanybob's topic in Free Modifications
Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Show the code where you placed it - in my test game, it showed up just fine. Hm... Again, worked in my test game. Possible reason for error is that there is not a row inserted in the hvzstats table. Put this at the top of a page (say, explore.php) and let me know what it outputs: $ztestnum=$db->num_rows($db->query("SELECT * FROM hvzstats")); print"Tell Seanybob the number: " . $ztestnum; You're right. The line of code in question is this: if($r['humanorzombie'] == 1) { $zomb="<font color='red'>Zombie</font>";$kills= "Kills: <font color='red'> {$ir['zombiekills']}</font> ";} Should be if($r['humanorzombie'] == 1) { $zomb="<font color='red'>Zombie</font>";$kills= "Kills: <font color='red'> {$r['zombiekills']}</font> ";} $ztestnum=$db->num_rows($db->query("SELECT * FROM hvzstats")); print"Tell Seanybob the number: " . $ztestnum; outputted 1 My bite them link doesn't show up either: [b]What do you want to do with {$odata['username']} now?[/b] <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them' /></form> <form action='attackbomb.php?ID={$_GET['ID']}' method='post'><input type='submit' value='Leave Them & Bomb (cost $20,000)' /></form>"; if ($ir['humanorzombie'] == 1 && $odata['level'] >= $ir['level'] && $odata['humanorzombie']==0) { echo '<form action="attackbite.php?ID='.$_GET['ID'].'" method="post"><input type="submit" value="Bite Them" /></form>'; } } -
Re: [mccodes v2] Taser Mod Adding it now, looks great.
-
Re: Looking for a Referal Mod ... Showing the 6 users with the highest number of referals QUERY ERROR: Invalid use of group function Query was SELECT COUNT('refREFED') AS total,refREFER FROM referals GROUP BY refREFER ORDER BY COUNT('referred') DESC LIMIT 10
-
Re: [mccode v2] Easter Egg Hunt (Finished) GREAT MOD! Thanks to Haunted Dawg, Notorious F.A.Z, and illusions, great job :)
-
Re: Exp needed per Level exp needed to level - exp they have.
-
Re: View Gang Surrender MCV2 is bugged when you get it, I need help with mine. I accept a surrender from someone and it just keeps saying "Invalid Gang". Here's my code for surrenders. function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { echo "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $sql = sprintf( "SELECT s.*, w.* " . "FROM surrenders s " . "LEFT JOIN gangwars w ON (s.surWAR = w.warID) " . "WHERE (surTO = %u)", $ir['gang']); $wq = $db->query($sql); while($r = $db->fetch_row($wq)) { $w = ($gangdata['gangID'] == $r['warDECLARER']) ? "You" : "Them"; $f = ($gangdata['gangID'] == $r['warDECLARER']) ? "warDECLARED" : "warDECLARER"; $SelectGangs = sprintf("SELECT * FROM gangs WHERE (gangID = %u)", $r[$f]); $ggq = $db->query($SelectGangs); $them = $db->fetch_row($ggq); echo sprintf("<option value='%u'>War vs. %s (Msg: %s)</option>", $r['surID'], stripslashes($them['gangNAME']), stripslashes($r['surMSG'])); } echo "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs(@intval($_POST['sur'])); $SelectWar = sprintf("SELECT surWAR FROM surrenders WHERE (surID = %u)", $_POST['sur']); $q = $db->query($SelectWar); if(!$db->num_rows($q)) { echo "Invalid surrender"; $h->endpage(); exit; } list($_POST['war']) = $db->fetch_row($q); $SelectGangWars = sprintf("SELECT * FROM gangwars WHERE (warID = %u)", $_POST['sur']); $wq = $db->query($SelectGangWars); if(!$db->num_rows($wq)) { echo "Invalid gang"; exit; } $r = $db->fetch_row($wq); $w = ($gangdata['gangID'] == $r['warDECLARER']) ? "You" : "Them"; $f = ($gangdata['gangID'] == $r['warDECLARER']) ? "warDECLARED" : "warDECLARER"; $AcceptSurrender = sprintf("DELETE FROM surrenders WHERE (surID = %u)", $_POST['sur']); $EndWar = sprintf("DELETE FROM gangwars WHERE (warID = %u)", $_POST['sur']); $db->query($AcceptSurrender); $db->query($EndWar); $SelectGang = sprintf("SELECT gangID, gangNAME FROM gangs WHERE (gangID = %u)", $r[$f]); $ggq = $db->query($SelectGang); $them = $db->fetch_row($ggq); $eventage = sprintf("[url='gangs.php?action=view&ID=%u']%s[/url] have accepted the surrender from [url='gangs.php?action=view&ID=%u']%s[/url]. The war is over!", $ir['gang'], $gangdata['gangNAME'], $them['gangID'], $them['gangNAME']); $event = str_replace("'", "''", $eventage); $LogEvent = sprintf("INSERT INTO gangevents VALUES ('', %u, unix_timestamp(), '%s'), ('', %u, unix_timestamp(), '%s')", $ir['gang'], $event, $r[$f], $event); $db->query($LogEvent); echo "You have accepted surrender, the war is over."; } }
-
Re: [MCCODES V2] Abduct someone from Hospital If this gets them out of hospital, bad idea. Say I'm in a war, I kill someone, Abduct em out, kill em, etc etc, 1000 respect very quick, huh.
-
Re: [Review] The Darkest Fate Bribes: 2147483647 Insecure. Other than that, it looks pretty damn good! Did you do your graphics?
-
[McCodes V2] Private Helth Care (Donator Only)
gurpreet replied to Dayo's topic in Free Modifications
Re: [McCodes V2] Private Helth Care (Donator Only) Iz a joke..He means he send Private Health Care so USA peepz get it. Obama = president.. -
Re: [Mccodes V2] Easter Egg Events +1 Illusions, great as usual. Just a bit confused...Whats the bit where you have default attack.php? I'm confused about that.
-
Re: Many mistakes PLEASE HELP Maybe he should have bought the codes...Someone who knows barely any coding (if any) wouldn't spend $300+ license would they now?
-
Re: installer question. Maybe you should have bought the codes, you could get help from the original makers, and not to download it. :roll:
-
Re: [MCCODES V2] Compare Items and Houses +1, perfect, as usual. :wink:
-
Re: [V2] Will Refill! Just wondering where it says will 57.5, couldnt you use the will/maxwill*100? or floor(will)?
-
Re: [mccodes] 5 Card Draw [10$] Does the act of blindfolding normally inhibit the ability to spell? I guess he means most people can't touch type / not be able to type while blindfolded.
-
Re: Nice Day Logout Simple but makes them more welcome. +1 to both of you.
-
Re: Daily Donators Reward [Mccode v2] And Joel says he let him RECODE it..Not making it 100%?
-
Re: Battle ladder [Mccodes V2] I click Join a ladder and no ladders are listed...Do I have to add some in via cpanel?