ITEMSHOP hiba

Started by FloodX, 2017-08-19, 12:59:51

A tárgy megvételekor ezt írja:
A tárgypiac raktárad nem képes több tárgyat befogadni. Szabadíts fel némi helyet az új tárgynak.

PHP-m:

<?PHP
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
mysql_query("SET NAMES UTF8");
mysql_query("set character set UTF8");
mysql_query("set collation_connection='utf8_unicode_ci'");
?>
<div class="title1">
<h1>KISEGÍTŐ LEHETŐSÉGEK</h1>
</div>
<div class="box-style1">
<div style="margin-left:40px;margin-top:-10px">
<table style="width: 640px">
<tbody>
<tr>
<td class="login-buttons">
<a href="index.php?s=tamogatas" class="itemshop-se-link btn-big-se"></a> &nbsp;
<a href="index.php?s=targypiac" class="itemshop-link btn-big-itemshop"></a> &nbsp;
<a href="index.php?s=beallitasok" class="btn-big-options"></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<?PHP
    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";
    }
  ?>
  <style>

.list-col-3 > li {
margin-left: 8.5%;
list-style: none;
text-align: center;
width: 35.0%;
float: left;
padding: 7.5px;
}

h9, .h9 {
font-size: 24px;
font-family: "Open Sans", Arial;
}

h10, .h10 {
font-size: 24px;
font-family: "Open Sans", Arial;
}



.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 150;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: 160px; /*position where enlarged image should offset horizontally */

}






targypiac, .targypiac
{
font-size: 12px;
font-family: 'Oswald', sans-serif;
margin-top: 5px;
}

targypiacinfo, .targypiacinfo
{
font-size: 12px;
font-family: 'Oswald', Arial;
margin-top: 5px;
margin-bottom: 5px;
}

jelenleg, .jelenleg
{
font-size: 15px;
font-family: 'Oswald', Arial;
margin-bottom: 5px;
margin-top: 15px;
}

.list-col-3 > li > a {
font-family: "Open Sans", Arial;
text-decoration: none;
text-align: center;
text-shadow: 0px 1px 2px white;
position: relative;
display: block;
padding: 20px 10px;
border-radius: 2px;
border-top: 1px solid white;
background-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.list-col-3 > li:hover > a {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.5);
}
.list-col-3 > li.inactive > a {
  color: #555;
  text-shadow: none;
  cursor: not-allowed;
  background-color: rgba(150, 150, 150, 0.5);
  box-shadow: inset -1px -1px 2px rgba(255, 255, 255, 0.3);
  -moz-box-shadow: inset -1px -1px 2px rgba(255, 255, 255, 0.3);
  -webkit-box-shadow: 2px 2px 3px rgba(255, 255, 255, 0.3), inset 2px 2px 3px rgba(0, 0, 0, 0.3);
}
.list-col-3 > li.inactive:hover > a {
  background-color: rgba(150, 150, 150, 0.4);
}

.col-xs-offset-2 {
margin-left: 16.66666667%;
}

.col-xs-offset-222 {
margin-left: 10%;
}

.col-xs-offset-2222 {
margin-left: 20%;
}

.col-xs-8 {
width: 80%;
}

/* Alert */
.heading1 {
font-family: 'Oswald', sans-serif;
font-size:15px;
text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
display: block;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 4px -1px rgba(255, 255, 255, 0.5);
-webkit-box-shadow: 0 2px 4px -1px rgba(255, 255, 255, 0.5);
-moz-box-shadow: 0 2px 4px -1px rgba(255, 255, 255, 0.5);
margin: 20px 0px 15px 0;
padding: 0px 0px 10px 0px;
}

</style>
<div id="content">
<div id="box1">

<div class="title1">
<h1>Tárgypiac</h1>
</div>


<div class="col-xs-offset-22 col-xs-8 box2" style="margin-left:70px">
<div class="box-content" style="text-align:center">
<h2 class="heading1"><div class="jelenleg"><p>Jelenleg <strong><font color="red"><?PHP echo $_SESSION['user_coins']; ?></font></strong> Sárkány Érmével rendelkezel!</p></div></h2>
<div class="targypiacinfo">A vásárolt tárgy azonnal bekerül a Tárgypiac raktárodban, amelyet a játékban nyithatsz meg.</div>
<div class="targypiacinfo">Ügyelj arra, hogy ha nem érkezik meg a rendelt tárgy, azonnal felvedd velünk a kapcsolatot a [email protected]<script cf-hash="f9e31" type="text/javascript">
/* <![CDATA[ */!function(){try{var t="currentScript"in document?document.currentScript:function(){for(var t=document.getElementsByTagName("script"),e=t.length;e--;)if(t[e].getAttribute("cf-hash"))return t[e]}();if(t&&t.previousSibling){var e,r,n,i,c=t.previousSibling,a=c.getAttribute("data-cfemail");if(a){for(e="",r=parseInt(a.substr(0,2),16),n=2;a.length-n;n+=2)i=parseInt(a.substr(n,2),16)^r,e+=String.fromCharCode(i);e=document.createTextNode(e),c.parentNode.replaceChild(e,c)}}}catch(u){}}();/* ]]> */</script> címen vagy látogass el a fórumunkra.</div>
</div>
</div>
  <br><br>
        <div class="col-xs-8 box2" style="margin-left:70px">
<div class="box-content" style="text-align:center">

<h2 class="heading1">
<div class="jelenleg">
<p>Kategóriák</p></div>
<?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 class="custom_button" href="index.php?s=targypiac&k='.$getKats->id.'">
'.$getKats->titel.'
</a>';
        }
      ?>
<br><br>
</h2>

     
<?PHP
      $sqlQry=mysql_query($sqlCmdS,$sqlHp);
      while($getItems=mysql_fetch_object($sqlQry)) {
        $aktItem = compareItems($getItems->vnum);
        $itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';
        ?>
<ul class="list-col-3">
                    <li data="1"><br>
                        <a>

<h2><b><?PHP echo $aktItem['item'].$itemStufe; ?></b></h2>
<?PHP echo $getItems->beschreibung; ?></a><a class="thumbnail"><?PHP
              if(!empty($getItems->bild)) echo'<img src="./kepek/targypiac/'.$getItems->bild.'" title="'.$aktItem['item'].'" alt="'.$aktItem['item'].'"/>';
            ?>

<span><?PHP
              if(!empty($getItems->describe_bild)) echo'<img src="./kepek/targypiac/ismerteto/'.$getItems->describe_bild.'" title="'.$aktItem['item'].'" alt="'.$aktItem['item'].'"/>';
            ?></span>

<br><br>
<strong>A tárgy ára:</strong>
<b> <font color="red"><?PHP echo $getItems->preis; ?></font> Sárkány Érme</b>
<br></a><a href="index.php?s=vasarlas&id=<?PHP echo $getItems->id; ?> ">
<input type="hidden" value="Vásárlás" class="is_btn"> <div class="targypiac">Vásárlás</div></a>

                       
                    </li>
</ul>

  <?PHP } ?>
        </div>
      <div class="clearfix" style="margin-bottom:15px"></div>
</div>
</div>

</div>
<?PHP
}
  else {
    echo'<meta http-equiv="refresh" content="1; URL=index.php?s=hiba"> ';
  }
?>

Hol van itt az a szöveg?  :o
Hamarosan...


2017-08-19, 15:45:48 #3 Last Edit: 2017-08-19, 15:47:22 by TrueLev
Használj secondary coint amit beállítasz sé utalványnak, úgyis kényelmesebb lenne a playereknek hogy úgy lehetne vásáolni itemshopból mint sima npc boltból minthogy folyton bejelentkezni weben stb

Persze ha a metin confighoz sem értesz meg nem is 40k-n játszol akkor mind1 szerintem hagyd rá 8)