Jump to content
MakeWebGames

AlabamaHit

Members
  • Posts

    1,308
  • Joined

  • Last visited

Everything posted by AlabamaHit

  1. Re: Education Stuck, Voting Stuck you willb e ok with just changing the $r and $q....Not all just the ones from that query you added and Below it......the only reason is because there is already a query on the page with the $q and $r being used, thats why it needs tobe different...
  2. Re: Education Stuck, Voting Stuck From this code down you need to do some editing.. i thinks its arguing with other code on page...   $q=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r=$db->fetch_row($q)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r['course']}");   change it to this....   $q2=$db->query("SELECT * FROM users WHERE cdays=0 AND course > 0"); while($r2=$db->fetch_row($q2)) { $cd=$db->query("SELECT * FROM courses WHERE crID={$r2['course']}");   see how i added the 2...i didtn look at all code...i know that there are more im sure to change, just add the 2 to everthying you are calling from there.....
  3. Re: [Mccode V2]Admin Shops well a +1 to you to lol
  4. Re: [Mccode V2]Admin Shops Thats basically what i was trying to say.....guess no one understood that. lol......Everyone writes it different.
  5. Re: [Mccode V2]Admin Shops Fair enough on all... but You think its point less to put table in php...I see it point less on opening and closing php so much on that......when there is no need to... But i see the otehr 2 makes since..
  6. Re: [Mccode V2]Admin Shops Well ImMoTal X I could hit you with the Exact same Questions... 1) Why you open and close the php tags so much? 2) why use strip_slashes? 3) why use number_format? Don't see need for that there? Lol...Just thought i would ask since you asked.....
  7. Re: [mccode v2] cMarket Total Limiter no problem
  8. Re: [Mccode V2]Admin Shops Not sure what the question is on Number 2...... Number 3 is its jsut how i write it maybe ??.. lol.....keep it cleaner??...lol..
  9. Re: [mccode v2] cMarket Total Limiter Make sure you didnt deleted the   on the line before it...Thats what it sounds like.
  10. Re: Auto-levelling! lol sorry about that.... Next thing is..did you use the Key? just like in the other crons you run? and have you tried to run it manually? if so What does it say or do? Does it give you an error?
  11. Re: [mccode] Itempedia [$5.00]   mhm, cause you would be delighted if you made a paid modification and someone posted half of it in the topic. I'm just gonig to leave that alone...................... $5 for that....LMAO....Ill post hte mods that people are selling all day on there. if they are this simple, Im not giong to let someone get SCREWED out of their money by a Scammer.
  12. Re: [Mccode V2]Admin Shops lol, nice.... Thought that code looked familiar, lol.. 8-)
  13. Re: Auto-levelling! Do you have a spot in users table called daysold?? If so....Do you have a user older than 51 days??
  14. Re: [mccode v2] Donator Packs To Items Nice
  15. Re: [Request] PHP Gamer Maybe, lol.......Not really trying to find the guy, just trying to find the files, lol...you wouldnt have them would you?
  16. Re: please can someone change from html to php Like he said, just change the extenssion to .php Now, your HTML in the page does not have to be changed, Neither does your Java.. When you insert php into the page, Just wrap it with the php tages.. Just an example...What I did was the title so you will have to scroll down..   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>GANGSTER-LEGENDS | LOGIN PAGE</title> </head> <link href="includes/in.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #282828; font-weight: bold; } body { font-family: Verdana; font-size: 10px; font-style: light; font-weight: 500; font-variant: light; color: #000001; background-image: url(bg.png); } #Layer1 { position:absolute; width:327px; height:44px; z-index:1; left: 450px; top: 156px; } #Layer2 { position:absolute; width:1001px; height:37px; z-index:2; left: 2px; top: 158px; } #Layer3 { position:absolute; width:482px; height:26px; z-index:3; left: 266px; top: 469px; } #Layer4 { position:absolute; width:292px; height:21px; z-index:4; left: 449px; top: 542px; } a:link { text-decoration: none; color: #282828; font-weight: light; } a:visited { text-decoration: none; color: #282828; font-weight: light; } a:active { text-decoration: none; color: #282828; font-weight: light; } a:hover { color: #282828; font-weight: light; text-decoration: flash; } #Layer5 { position:absolute; width:457px; height:16px; z-index:4; left: 314px; top: 407px; } .style8 {color: #282828} .style30 {color: #282828; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } #what { padding: 0px; margin: 0px; position: absolute; width: 143px; height: 143px; right: 0; top: 0; } --> </style> <head> //For example, Im not going to recode page, just changing the title... //So I just wrap this. <?php //This is the opening php tag $getit = sprintf("SELECT name FROM something"); $doit = mysql_query($getit); $name = mysql_fetch_array($doit); echo " <title>".$name['name']."</title>"; ?> <link href="includes/in.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <body background="bg.png"> <div align="center"> <body background="bg.png"> <form name="form1" method="post" action=""> <p align="center"> <map name="Map" id="Map2"> </map> [img=http://i38.tinypic.com/2d7u5v.png] <map name="Map23"> <area shape="rect" coords="158,6,257,46" href="register.php"> </map> </map> <map name="MapMap" id="Map22"> </map> <map name="Map23Map"> <area shape="rect" coords="351,6,501,47" href="ss.php"> </map> </p> <div id="Layer1"> <div align="right"> <p align="right" class="style8"><span class="style30"><font color=red>[b]<center></center>[b]</font><font color=white>[b]<center></center>[b]</font></span> USERNAME : <input name="username" type="text" id="username" value="" class="inputbg" maxlength="40" /> PASSWORD : <input name="password" type="password" id="password" value="" class="inputbg" maxlength="40" /> [img=http://i33.tinypic.com/2i0sltj.png] PLEASE ENJOY THE GAME AS MUCH AS POSSIBLE </p> </div> </div> </form> <body background="bg.png"> </body> </html>   Of course thats just an example, I know that will give you errors, because of the comments, but Hopefully it helps :)
  17. Re: Help with Donate page to credit an item instead of upping stats In Version 2 there is an item add fucntion. it merges the items automatically. so try this. if your using item id 122   item_add($userid,122,1);   The Break down of this is... There are 3 parts. $userid == This is the user id of person to recieve it...So if its a post then use $_POST['ID'] 122 == This is the Item ID to give to the user.. 1 == This is the quanity to give... So for another example, Lets say this...we will give it to a user using POST method. And going to use a GET method on the Item., and a quanity of 5..   item_add($_POST['ID'],$_GET['ITEM'],5);   now say the post user id was 3, and the get item was 12, User ID 3 would get 5 of the Item ID 12. Hope this helps.
  18. Re: Crystal Market Addon http://criminalexistence.com/ceforums/i ... ic=27059.0   There is what you need.
  19. Re: [mccode v2] cMarket Total Limiter Thanks man. :-D Actually my first post for a mod...I think, lol...I done it cuase someone was wanting this on there game...So I figured I would type it up and put it in the Mod section and just link them here. That way if others wanted to do it....
  20. NOTE: IF YOUR CRYSTAL MARKET IS NOT EMPTY THIS WILL MESS THINGS UP!!!!!! SO.....Make users take their crystals OFF the market BEFORE you add this..   This is a VERY simple add on to the crystal market to limit your users from posting a stupid amount of crystals on the market. Run this query   ALTER TABLE `users` ADD `cry` int(2) NOT NULL DEFAULT '0';   Now open cmarket.php Find: $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); print "Crystals removed from market! [url='cmarket.php']> Back[/url]"; }   Add BEFORE:   $remove = sprintf("UPDATE users SET cry = cry - '%u' WHERE userid = '%u' ", ($r['cmQTY']), ($userid)); mysql_query($remove);   Now FIND:   $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); $db->query("UPDATE users SET money=money-{$r['cmPRICE']} where userid=$userid"); $db->query("UPDATE users SET money=money+{$r['cmPRICE']} where userid={$r['cmADDER']}");   Add AFTER: $bought = sprintf("UPDATE users SET cry = cry - '%u' WHERE userid = '%u' ", ($r['cmQTY']), ($r['cmADDER'])); mysql_query($bought);   Now FIND:   $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp)"); $db->query("UPDATE users SET crystals=crystals-{$_POST['amnt']} WHERE userid=$userid");   Add AFTER: $adding = sprintf("UPDATE users SET cry = cry + '%u' WHERE userid = '%u' ", ($_POST['amnt']), ($userid)); mysql_query($adding);   Now FIND:   if($_POST['amnt']) { if($_POST['amnt'] > $ir['crystals']) { die ("You are trying to add more crystals to the market than you have."); }   Add AFTER:   if($_POST['amnt'] + $ir['cry'] > 10) //Change the 10 to what you want. { echo "You can not have more than 10 crystals on market at a time [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; }   Now that 10 is what you change to make the Most you want them to have on the market.... Now to block how many different Post they can have...This to is very simple... FIND:   if($_POST['amnt'] + $ir['cry'] > 10) //Change the 10 to what you want. { echo "You can not have more than 10 crystals on market at a time [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; }   Add AFTER THAT:   $check = sprintf("SELECT cmID FROM crystalmarket WHERE cmADDER = '%u' ", ($userid)); $docheck = mysql_query($check); if(mysql_num_rows($docheck) >= 2) { echo "You can only have 2 differnt post at a time. [url='cmarket.php']> Go Back[/url]"; $h->endpage(); exit; }   +1?? lol....if ya like it...or use :-D
  21. Re: Crystal Market Addon http://criminalexistence.com/ceforums/i ... ic=27059.0 Made it for you 8-)
  22. Re: [mccode] Itempedia [$5.00] I don't think its worth taht...But there it is...........If you think it is Feel free to pay me...At least what I did makes it show you don't have to edit a HTML file to add manually.....So um....If you like it and think its worth $5 PM me. lol...Ill gladly take $5 for a script that took me 5 seconds to think of and 45 seconds to write............jezz....Why bash me....Bash him...for selling Crap.
  23. Re: in need of hosting Host Monster \\\\_________ Blue Host //// These are bascially the same. Lunar Pages. Those are the best 3 i can think of for startting out. and good prices for quality.....
  24. Re: Gang surrenders to lose respect! Yes, I think you where very close on the first post, minus couple typos.... I don't think this will do antying, lol if($gangdata['gangID'] == $gangdata['warDECLARER']) Thats why I changed it up some..... But Yes, you where on right track. Just add that into your accept surrender function...Thne when they accept it it will take the respect...and send the events...I think what you had coded..will work....But there is only one way to see lol....
  25. Re: Jail Bust That Requires 5 brave   <?php /*------------------- -- Free Jail Bust -- By AlabamaHit -------------------*/ require ("globals.php"); if($ir['brave'] < 5) { echo "Sorry, it cost 5 Brave to Bust someone. All You have is ".$ir['brave']." brave. [url='index.php']> Go Home[/url]"; $h->endpage(); exit; } if($ir['jail']) { echo "You cannot bust out people while in jail. [url='index.php']> Go Home[/url]"; $h->endpage(); exit; } if($ir['hospital']) { echo "You cannot bust out people while in the hosptial. [url='index.php']> Go Home[/url]"; $h->endpage(); exit; } $_GET['ID']=abs((int) $_GET['ID']); $getinfo = sprintf("SELECT * FROM users WHERE userid = '%u' ", ($_GET['ID'])); $doinfo = mysql_query($getinfo); $r = mysql_fetch_array($doinfo); if(!$r['userid']) { echo "There is no user with this ID. [url='index.php']> Go Home[/url]"; $h->endpage(); exit; } if(!$r['jail']) { echo "That user is not in jail. [url='index.php']> Go Home[/url]"; $h->endpage(); exit; } $mult = $r['level'] * $r['level']; $chance = min(($ir['crimexp']/$mult) * 50 + 1, 95); if(rand(1,100) < $chance) { $gain = $r['level'] * 5; echo "Congradulations you busted ".$r['username']." out of jail. [url='jail.php']> Go Back[/url]"; $update = sprintf("UPDATE users SET brave = brave - '%d', crimexp = crimexp + '%u', busts = busts + '%d' WHERE userid = '%u' ", (5), ($gain), (1), ($userid)); mysql_query($update); $getout = sprintf("UPDATE users SET jail = '%d' WHERE userid = '%u' ", (0), ($r['userid'])); mysql_query($getout); event_add($r['userid'], "[url='viewuser.php?u=".$ir[']".$ir['username']."[/url] busted you out of jail.", $c); } else { echo "Opps....You got caught while trying to bust someone out of jail....So, they place you in there to. [url='jail.php']> Go to Jail[/url]"; $time = min($mult, 20); $reason = "Caught trying to bust out ".$r['username'].""; $update = sprintf("UPDATE users SET brave = brave - '%d', jail = '%u', jail_reason = '%s' WHERE userid = '%u' ", (5), ($time), ($reason), ($userid)); mysql_query($update); event_add($r['userid'], "[url='viewuser.php?u=".$ir[']".$ir['username']."[/url] was caught trying to bust you out of jail.", $c); } $h->endpage(); ?>
×
×
  • Create New...