View Single Post
Old 02-02-2009, 08:38 PM   #6 (permalink)
KingOfTheSouth
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

I said it in my last post. But I am pretty sure it is within here
PHP Code:
<?
if (($buy) || ($sell))
{
      if ((
maxlength($condoms) == bad) ||
          (
maxlength($meds) == bad) ||
          (
maxlength($glocks) == bad) ||
          (
maxlength($shotguns) == bad) ||
          (
maxlength($uzis) == bad) ||
          (
maxlength($ak47s) == bad) ||
          (
maxlength($crack) == bad) ||
          (
maxlength($dope) == bad) ||
          (
maxlength($lowriders) == bad) ||
          (
maxlength($hummer) == bad) ||
          (
maxlength($jet) == bad) ||
          (
maxlength($plane) == bad))
          {
$error='<font color="#FFCC00">You cannot buy or sell that amount at a time</font>';}
  elseif ((
$condoms) && (eregi_replace("([0-9]+)","",$condoms)) ||
        (
$meds) && (eregi_replace("([0-9]+)","",$meds)) ||
        (
$glocks) && (eregi_replace("([0-9]+)","",$glocks)) || 
        (
$shotguns) && (eregi_replace("([0-9]+)","",$shotguns)) ||
        (
$uzis) && (eregi_replace("([0-9]+)","",$uzis)) ||
        (
$ak47s) && (eregi_replace("([0-9]+)","",$ak47s)) ||
        (
$crack) && (eregi_replace("([0-9]+)","",$crack)) ||
        (
$dope) && (eregi_replace("([0-9]+)","",$dope)) ||
        (
$lowriders) && (eregi_replace("([0-9]+)","",$lowriders)) ||
        (
$hummer) && (eregi_replace("([0-9]+)","",$hummer)) ||
        (
$jet) && (eregi_replace("([0-9]+)","",$jet)) ||
        (
$plane) && (eregi_replace("([0-9]+)","",$plane))) {?><font color="#FFCC00">No item selected</font><br><?}
   else{
       if(
$buy)
         {
$price1=$condoms*5;
          
$price2=$meds*20;
          
$price4=$glocks*500;
          
$price5=$shotguns*1000;
          
$price6=$uzis*2500;
          
$price7=$ak47s*5000;
          
$price8=$crack*20;
          
$price9=$dope*10;
          
$price10=$lowriders*8000;
          
$price11=$hummer*16000;
          
$price12=$jet*50000;
          
$price13=$plane*125000;
         }
       if(
$sell)
         {
$price6=$glocks*375;
          
$price7=$shotguns*750;
          
$price8=$uzis*1875;
          
$price9=$ak47s*3750;
          
$price10=$condoms*3.75;
          
$price11=$crack*15;
          
$price12=$dope*7.5;
          
$price13=$meds*15;
          
$price14=$lowrider*6000;
          
$price15=$hummer*12000;
          
$price16=$jet*37500;
          
$price17=$plane*93750;
         }

Or here
PHP Code:
 if($buy)
             {
$pmp[6] -= $cost;
              
$pmp[6] += $condoms;
              
$pmp[7] += $meds;
              
$pmp[9] += $crack;
              
$pmp[8] += $dope;
              
$pmp[1] += $glocks;
              
$pmp[2] += $shotguns;
              
$pmp[3] += $uzis;
              
$pmp[4] += $ak47s;
              
$pmp[5] += $lowriders;}
              
$pmp[10] += $hummer;}
              
$pmp[11] += $jet;}
              
$pmp[12] += $plane;}
           if(
$sell)
             {
$pmp[6] += $cost;
              
$pmp[1] -= $glocks;
              
$pmp[2] -= $shotguns;
              
$pmp[3] -= $uzis;
              
$pmp[4] -= $ak47s;
              
$pmp[5] -= $lowriders;
              
$pmp[10] -= $hummer;
              
$pmp[11] -= $jet;
              
$pmp[12] -= $plane;
              
$pmp[6] -= $condoms;
              
$pmp[7] -= $meds;
              
$pmp[9] -= $crack;
              
$pmp[8] -= $dope;
             }
           
$pmp[1]=fixinput($pmp[1]);
           
$pmp[2]=fixinput($pmp[2]);
           
$pmp[3]=fixinput($pmp[3]);
           
$pmp[4]=fixinput($pmp[4]);
           
$pmp[5]=fixinput($pmp[5]);
           
$pmp[6]=fixinput($pmp[6]);
           
$pmp[7]=fixinput($pmp[7]);
           
$pmp[8]=fixinput($pmp[8]);
           
$pmp[9]=fixinput($pmp[9]);
           
$pmp[10]=fixinput($pmp[10]);
           
$pmp[11]=fixinput($pmp[11]);
           
$pmp[12]=fixinput($pmp[12]);
           
$pmp[13]=fixinput($pmp[13]);
           
mysql_query("UPDATE $tab[pimp] SET money='$pmp[6]', condom='$pmp[6]', medicine='$pmp[7]', crack='$pmp[9]', weed='$pmp[8]', glock='$pmp[1]', shotgun='$pmp[2]', uzi='$pmp[3]', ak47='$pmp[4]', lowrider='$pmp[5]', hummer='$pmp[10]', jet='$pmp[11]', plane='$pmp[12]' WHERE id='$id'");
           
$soldfor=$pmp[6];
           
$transaction=completed
I pretty much copy and pasted a few other lines to add the stuff since this page is the most complicated in the whole script
KingOfTheSouth is offline  
Reply With Quote