Register for your free account! | Forgot your password?
Rust Cheats

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 23:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[ItemShop] Dupli.. entry !! PLS help !!

Discussion on [ItemShop] Dupli.. entry !! PLS help !! within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
-Tuni's Avatar
 
elite*gold: 20
Join Date: Jun 2010
Posts: 2,237
Received Thanks: 956
Exclamation [ItemShop] Dupli.. entry !! PLS help !!

Hey ho,
seit neustem erscheint das wenn man etwas auf der HomePage kaufen will.

Screen:


An was kan es liegen bzw. wie fixxt man es ??
BITTE HELP:

Hier meine Itemshop.php

Code:
<div id="content">			<div class="postui2 text-title">
					<h2>
            Kategorien
                    
                    </h2>
				
				</div>
				<div class="postui2 text-con">
				<div class="con-wrap"><center>
<?PHP

  if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
    if(isset($_GET['k']) && checkInt($_GET['k'])) {
      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items WHERE kategorie_id='".$_GET['k']."' ORDER BY id DESC";
    }
    else {
      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items ORDER BY id DESC";
    }
  ?>

         
      <?PHP
        $sqlCmd = "SELECT * FROM ".SQL_HP_DB.".is_kategorien ORDER BY titel ASC;";
        $sqlQry = mysql_query($sqlCmd,$sqlHp);
        while($getKats = mysql_fetch_object($sqlQry)) {
          echo'
		   <a href="index.php?s=itemshop&k='.$getKats->id.'">
<input type="submit" value="'.$getKats->titel.'" name="submit" class="btn">
		</a>';
        }
      ?>

		</center>		</div>

  </div> 
				<div class="postui2 text-end">
             
                
                  
    </div></div>

 <br />
 <div id="content">			<div class="postui2 text-title">
					<h2>
           Item Liste
                    
                    </h2>
				
				</div>
				<div class="postui2 text-con">
				<div class="con-wrap">
  <div id="isright">
    <?PHP
      $sqlQry=mysql_query($sqlCmdS,$sqlHp);
      while($getItems=mysql_fetch_object($sqlQry)) {
        $aktItem = compareItems($getItems->vnum);
        $itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';
        ?>
         <div id="fuibar">			
<div class="fuibarui fui-title">
<p><?PHP echo $aktItem['item'].$itemStufe; ?></p>
</div>
<div class="fuibarui fui-con">
<div class="fui-wrap">
<table>
        <tr>
          <td>
             <?PHP 
              if(!empty($getItems->bild)) echo'<img src="./is_img/'.$getItems->bild.'" title="'.$aktItem['item'].'" alt="'.$aktItem['item'].'"/>';
            ?>
          <a href="index.php?s=is_buy&id=<?PHP echo $getItems->id; ?> ">
          <input type="submit" value=""  class="is_btn">
          </a>
          </td>
          <td width="400"><?PHP echo $getItems->beschreibung; ?><br />
          Kostet:<b> <?PHP echo $getItems->preis; ?> Coins</b></td>
        </tr>
        </table>
</div>
</div> 
<div class="fuibarui fui-end">
</div></div>
        <?PHP
      }
    ?>
  </div>
  <?PHP
  }
  else {
    echo'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
  }
?>
				</div>

  </div> 
				<div class="postui2 text-end">
             
                
                  
    </div></div>
und hier meine Buy.php

Code:
<div id="content">			<div class="postui2 text-title">
					<h2>
                 Kaufen
                    
                    </h2>
				
				</div>
				<div class="postui2 text-con">
				<div class="con-wrap">
<?PHP

  if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
  
    if(isset($_GET['id']) && checkInt($_GET['id'])) {
    
      $sqlCmd="SELECT vnum, preis, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2 FROM ".SQL_HP_DB.".is_items WHERE id='".$_GET['id']."' LIMIT 1";
      $sqlQry=mysql_query($sqlCmd,$sqlHp);
      if(mysql_num_rows($sqlQry)==1) {
      
        $getItem=mysql_fetch_object($sqlQry);
        if($_SESSION['user_coins']>=$getItem->preis) {
      
          $getGroesse = compareItems($getItem->vnum);
          $belPos = checkPos($_SESSION['user_id']);
          $possiblePos = findPos($belPos['islager'],$getGroesse['groesse']);
          if(!empty($possiblePos)) {
          
            $sqlCmd="UPDATE account.account SET coins=coins-".$getItem->preis." WHERE id='".$_SESSION['user_id']."' LIMIT 1";
            $sqlQry=mysql_query($sqlCmd,$sqlServ);
            $sqlLog="INSERT INTO ".SQL_HP_DB.".is_log (account_id,vnum,preis,zeitpunkt) VALUES ('".$_SESSION['user_id']."','".$getItem->vnum."','".$getItem->preis."','".$sqlZeit."')";
            $qryLog=mysql_query($sqlLog,$sqlHp);
            $sqlItem="INSERT INTO player.item 
            (owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2)
            VALUES 
            ('".$_SESSION['user_id']."','MALL','".$possiblePos[0]."','1','".$getItem->vnum."','".$getItem->attrtype0."', '".$getItem->attrvalue0."', '".$getItem->attrtype1."', '".$getItem->attrvalue1."', '".$getItem->attrtype2."', '".$getItem->attrvalue2."', '".$getItem->attrtype3."', '".$getItem->attrvalue3."', '".$getItem->attrtype4."', '".$getItem->attrvalue4."', '".$getItem->attrtype5."', '".$getItem->attrvalue5."', '".$getItem->attrtype6."', '".$getItem->attrvalue6."', '".$getItem->socket0."', '".$getItem->socket1."', '".$getItem->socket2."')";
            $qryItem=mysql_query($sqlItem,$sqlServ) or die(mysql_error());
            echo'<p class="meldung">Das item wurde erfolgreich gekauft. Sollte das Item nicht im Lager erscheinen, bitte umgehend bei einem Admin melden.</p>';
            
          }
          else {
            echo'<p>Sie haben nicht genügend Platz in ihrem Itemshop-Lager. Ihr Guthaben wurde nicht verändert.</p>';
          }
          
        }
        else {
          echo'<p class="meldung">Sie haben nicht genug Coins.</p>';
        }
      }
      else {
        echo'<p class="meldung">Das angegebe Item existiert nicht.</p>';
      }
    }
    else {
      echo'<p class="meldung">Es wurde keine gültige ID eingegeben.</p>';
    }
    echo'<p><a href="javascript:history.back()">zurück</a></p>';
  }
  else {
    echo'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
  }
?>
				</div>

  </div> 
				<div class="postui2 text-end">
             
                
                  
    </div></div>
Bitte help .....



Danke für richtige Hilfe gebe ich ein kleines Geschenk.

Mit freundlichen Grüßen
-Tuni is offline  
Thanks
1 User
Old 08/16/2011, 02:36   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 104
Received Thanks: 81
Das müsste klappen.
Quote:
wenn ihr diesen
PHP-Code:
Duplicate entry '4294967295' for key 1
habt wenn ihr im IS was kaufen wollt ist die Lösung wieder so Simpel das man einfach nicht drauf kommt.


Nun zum Wesentlichen.

Zitat:
- DB Öffnene
- Player > Item
- In der Item nun STRG + D Drücken oder oben links auf Desing Table drücken.
- Nun in die spalte ID gehen ( ist die 1. ) gucken nach unten und da müsste

PHP Code:
int 
stehen

- das wählen wir aus und scrollen runter bis ihr

PHP Code:
bigint 
findet.
-

PHP Code:
Int 
Nun einfach in

PHP Code:
bigint 
ändern und speichern
- Tada es geht wieder
Viel Glück!
´Exodus is offline  
Thanks
1 User
Old 08/16/2011, 02:48   #3
 
-Tuni's Avatar
 
elite*gold: 20
Join Date: Jun 2010
Posts: 2,237
Received Thanks: 956
Danke

#gelöst !! ging irgendwie wieder !
Wenn das problem wieder kommt sehe ich nach deinem fixx
-Tuni is offline  
Old 08/16/2011, 10:35   #4

 
¢ýL's Avatar
 
elite*gold: 1
Join Date: Aug 2010
Posts: 1,264
Received Thanks: 363
Was Exodus gemacht hat die Zeile vergrößert aber Duplikate entry heißt das in der Spallte "ID" was doppelt vorkommt!
PS: Das darf eigentlich nicht vorkommen xD
¢ýL is offline  
Reply


Similar Threads Similar Threads
CARD DUPLI for GCPH - :)
04/19/2011 - Grand Chase Philippines - 10 Replies
Card Duplication : Requirements : Lvl 0 set (Nurse Set) Socket Jewel 3pcs Monster Card LAN wire , mahihirapan kayo kung Wifi Steps : 1. Pasok niyo ung card sa lvl 0 items which is the nurse set
Card Dupli
03/25/2011 - Grand Chase Philippines - 6 Replies
Please tell me how to card dupli Because i want a higher Crit :D
New Card Dupli
03/22/2011 - Grand Chase Philippines - 12 Replies
Thread close Sorry i will never post again a new bug i will knew ^^
Card Dupli =))
12/26/2010 - Grand Chase Philippines - 5 Replies
hmm anyone i know that dupli i also discovered it when im extracting my giant card from my ronan i got 6 giant cards =) if you wnt to know the trick ill give hints in the lobby stay tune =)
about CArd dupli
12/24/2010 - Grand Chase Philippines - 6 Replies
can anyone teach me how to duplicate cards? i can trade CashPoints for info. but you have to prove me that its working



All times are GMT +1. The time now is 23:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.