AlabamaHit
Members-
Posts
1,308 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by AlabamaHit
-
Re: [mccode] Itempedia [$5.00] lol could show them all by $getinfo = sprintf("SELECT itmname,itmtype FROM items"); $doinfo = mysql_query($getinfo); echo "<table>"; echo "<tr>"; echo "<th>Item Name</th>"; echo "<th>Item Type</th>"; echo "</tr>"; while ($item = mysql_fetch_array($doinfo)) { echo "<tr>"; echo "<td>".$item['itmname']."</td>"; echo "<td>".$item['itmtype']."</td>"; echo "</tr>"; } echo "</table>";
-
Re: Gang surrenders to lose respect! if($ir['gang'] == $gangdata['warDECLARER']) { $rep = sprintf("UPDATE gangs set gangrespect = gang respecct - '%u' WHERE gangID = '%u' ", (5), ($ir['gang'])); mysql_query($rep); //event_add for gang getting repect //event_add for gang losint respect } else { $rep = sprintf("UPDATE gangs SET gangrespect = gangrespect - '%u' WHERE gangID = '%u' ", (1), ($ir['gang'])); mysql_query($rep); //event add for gang getting respect //event add fro gagn losing respect }
-
Re: Gang surrenders to lose respect! I'm not 100% sure of what your wantning, I think i know.....What I was doing was trying to set a number to $respect..If all you needing ot do is send events to both gangs...just insert the event_add in each part of the code... if($ir['gangID'] == $gangdata['warDECLARER']) { $rep = sprintf("UPDATE gangs set gangrespect = gang respecct - '%u' WHERE gangID = '%u' ", (5), ($ir['gang'])); mysql_query($rep); //event_add for gang getting repect //event_add for gang losint respect } else { $rep = sprintf("UPDATE gangs SET gangrespect = gangrespect - '%u' WHERE gangID = '%u' ", (1), ($ir['gang'])); mysql_query($rep); //event add for gang getting respect //event add fro gagn losing respect }
-
Re: need help wtih this function MAKE IT READABLE.... Now TRY this and HELL NO i didn't try it HOW COULD WE....we only have 1 function from a whole page... function edit_entry_form() { $cph2 = sprintf("SELECT * FROM phonebook WHERE id = '%u' ", ($_POST['id'])); $cph = mysql_query($cph2); $ph = mysql_fetch_array($cph); echo "[b]Editing Record[/b]"; echo "<form action='newentry.php?action=editentrysub' method='post'>"; echo "<input type='hidden' name='userid' value='".$_POST['id']."' />"; echo "Category:"; echo "<input type='text' name='category' value='".$ph['category']."' />"; echo " "; echo "Business Name:"; echo "<input type='text' name='business_name' value='".$ph['business_name']."' />"; echo " "; echo "Address:"; echo "<input type='text' name='address' value='".$itemi['ph']."' />"; echo " "; echo "Phone:"; echo "<input type='text' name='phone' value='".$itemi['ph']."' />"; echo " "; echo "Fax:"; echo "<input type='text' name='fax' value='".$itemi['ph']."' />"; echo " "; echo "Mobile:"; echo "<input type='text' name='mobile' value='".$ph['mobile']."' />"; echo " "; echo "E-Mail:"; echo "<input type='text' name='email' value='".$ph['email']".' />"; echo " "; echo "Website:"; echo "<input type='text' name='website' value='".$ph['website']."' />"; echo " "; echo "Logo:"; echo "<input type='text' name='logo' value='".$ph['logo']."' />"; echo " "; echo "Description:"; echo "<input type='text' name='description' value='".$ph['description']."' />"; echo " "; echo "</form>"; }
-
Re: Bars? i saw "Bars" and got excited........dang it...........
-
Re: Gang surrenders to lose respect! Do yo mean this? if($ir['gangID'] == $gangdata['warDECLARER']) { $respect = 5; } else { $respect = 1; }
-
Re: Help Fix brothel I think you hit it perfect .I belive that is what he was loooking for.
-
Re: Sent Messages, and all Im glad I would hate to see good code go to waist........And all i can say is ifyou want help You have to show it...and you didnt show it.. Thank you Nyna I'm glad that some people here knows how I feel. I just don't want to help someone taht wont help theirself.
-
Re: Sent Messages, and all honestly, grow up, you make your self sound so supperier to everyone else, well your not, you never will be. Removed Reason: Language
-
Re: Missions Error obviously not.........you will hve to find that yourself...Look in your header.php and make sure all your echos or print are closed with a " if so then look to make sure all your querys have the ' in them like $ir['userid'] make sure they are not like $ir['userid]
-
Re: Sent Messages, and all if you want help YOU need to put more effert in........Im NOT signing up to your game to see an error, You need to take a screen shot or somethin, lol
-
Re: [V2] crystal Temple I wasnt trying to start nothying lol :roll: just saying lol .lol....
-
Re: [V2] crystal Temple I have always spaced my querys, and never got an error.... :? Like i would write that like this...Before.. $db->query("UPDATE users SET crystals = crystals - 10, location = 2 WHERE userid = $userid"); Now i write them like this... $userupdate = sprintf("UPDATE users SET crystals = '%d' , location = '%d' WHERE userid = '%u' ", (10), (2), ($userid)); mysql_query($userupdate);
-
Re: [mccode] Mining mod I'm not sure what errrors. I use this with no errors.. echo " My name is ".$ir['username']." ".
-
Re: Missions Error Not sure the code thats messed up.....but that sounds like a ' or a " is missing.
-
Re: Halloffame Playing up I changed my other post Look at it i think that should fix it.....
-
Re: Halloffame Playing up Are you by chance the only one with busts? Maybe its only useing yours cuase no one has 1?...this is weird problem.... Wait I think i found it......... Look at your main query... $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY busts DESC,userid ASC LIMIT 20"); try this.. $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY u.busts DESC,u.userid ASC LIMIT 20"); Notice the end wehre i put the u. for users table, looks like you just forgot to put that in.
-
Re: Help with flash chat v474 I assume on that query your useing $userid Make sure that globals is on that page.. global $db, $userid; if thats not there. it will not know what $userid is therefor have a blank userid like that.
-
Re: Halloffame Playing up You must have misunderstood... Don't take it ALL off... in that last part use {$r['busts']} here do this.. find this line print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t".money_formatter($r['busts'],'')."$et</td> </tr>"; change it to this.. print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>".$r['busts']."</td> </tr>";
-
Re: Jailbust How Do I.. Finally logic.........He admits he is an idiot...
-
Re: Jailbust How Do I.. I dont call what i do spamming.. I call it "Calling Out", bS people who just wants someeone to do something for them rather then them learning. Now what I call spamming is a guy that has OVER 1000 POST and still cant do ANYTHING himself. I don't mind helping people. NOTICE THE WORD HELP I DONT like doing stuff for poeple and the way you go about stuff is stupid. You try to get people to DO stuff for you and when they give you a link that showed and explained it to them, you just say you dont understand. I bet you dont open the page to look at it, and if you do. and dont understand You dont need a game, cause you will never have any knowledge of PHP.
-
Re: Halloffame Playing up try taking the money formatter off of it.....maybe thats conflicting with it...
-
Re: Help with flash chat v474 oh sorry, didnt know you where looking for specific one...Cant really help you with that, i have IRC chat on mine....not flash...
-
Re: List Completely Agree, they should put that on the search page, cause you are correct for best result click on PHP-Games then Search, it seems to look through more, and also like most searchs try to keep from putting in a whole sentence.. Like if your looking for a fix to a cron error. Search cron error.. Dont search the whole problem. say...cron error crons not running. <--that more than likely will not get you any results. Basically just try to keep your searchs short. You will get better results...
-
Re: List did i say you begged on this site? no. and calm the hell out, this is just a discusion not a argument. Sorry bout that...the caps didnt mean i was going crazy, lol....just used to talking to people on here that cant seem to read it unless its in caps...Sorry if you took it that way, I never took offence to what you said 8-)