Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 04:03

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

Advertisement



isbuy.php problem pls help

Discussion on isbuy.php problem pls help within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 45
Received Thanks: 13
Unhappy isbuy.php problem pls help

Hey com haben problem
Wen jemand was bei und im is kauft steht im log das er es 2 mall gekauft hat und manchmall bekommt er 2 items kann man das fixen ?

dewnke mall in is_buy.php aber finde da nix pls help...



~TaLeX~ is offline  
Old 01/09/2011, 18:44   #2
 
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
vielleicht weil man 1 mal klickt dann dauert des und man klickt zweites mal
'Haseo is offline  
Old 01/09/2011, 18:46   #3
 
elite*gold: 0
Join Date: Jan 2011
Posts: 45
Received Thanks: 13
ne -.- leider nich man kauft und bekommt 2 und im logg stehen 2
~TaLeX~ is offline  
Old 01/09/2011, 19:13   #4
 
elite*gold: 10
Join Date: Jun 2009
Posts: 785
Received Thanks: 687
Mach dir einen Account mit vielen Coins.
Kauf einmal mit Mozilla Firefox , einmal mit Internet Explorer und einmal mit Google Chrome.
Und guck welches 2X kauft.
BaTushi16 is offline  
Thanks
1 User
Old 01/09/2011, 19:17   #5

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Schreib das ganze mal in PHP-Tags, dann lässt sich das besser lesen.
Zudem ist pushen verboten, daher #reported..


€dit:
Werden denn auch die Coins zwei mal angezogen?
Computerfreek is offline  
Old 01/09/2011, 19:32   #6
 
elite*gold: 0
Join Date: Jan 2011
Posts: 45
Received Thanks: 13
coints werden auch dopelt abgezogen und es werden mit allen 3 i net browsern abgezogen -.-
~TaLeX~ is offline  
Old 09/24/2011, 00:16   #7
 
[ShiizoPhreN]™'s Avatar
 
elite*gold: 40
Join Date: May 2010
Posts: 413
Received Thanks: 519
<?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']."' AND anzeigen='J' LIMIT 1";
$sqlQry=mysql_query($sqlCmd,$sqlHp);
if(mysql_num_rows($sqlQry)==1) {

$getItem=mysql_fetch_object($sqlQry);

$sqlCoins = "SELECT coins FROM account.account WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."' LIMIT 1";
$qryCoins = mysql_query($sqlCoins,$sqlServ);
$getCoins = mysql_fetch_object($qryCoins);

if(($getCoins->coins)>=$getItem->preis) {

$getGroesse = compareItems($getItem->vnum);
$belPos = checkPos($_SESSION['user_id']);
$possiblePos = findPos($belPos['islager'],$getGroesse['groesse']);
if(!empty($possiblePos)) {

$nCoins = $getCoins->coins-$getItem->preis;

$sqlCmd="UPDATE account.account SET coins='".mysql_real_escape_string($nCoins)."' WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."' LIMIT 1";
$sqlQry=mysql_query($sqlCmd,$sqlServ);

$sqlLog="INSERT INTO ".SQL_HP_DB.".is_log (account_id,vnum,preis,zeitpunkt) VALUES ('".mysql_real_escape_string($_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
('".mysql_real_escape_string($_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>';
}
?>

das rot markierte ist dein bug
[ShiizoPhreN]™ is offline  
Reply


Similar Threads Similar Threads
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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