Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 19:38

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

Advertisement



Problem bei HP - Itemerstellung

Discussion on Problem bei HP - Itemerstellung within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 15
Join Date: Oct 2013
Posts: 114
Received Thanks: 15
Problem bei HP - Itemerstellung

Habe einen eigenen kleinen Server zum testen erstellt, nun kommt bei der HP dieser Error:

Notice: Undefined index: acc in PFAD/pages/admin/create_item.php on line 48

Das Script sieht so aus:
Quote:
<?PHP
if($_SESSION['user_admin']>=$adminRights['itemerstellung']) {
?>
<h2>Admin - Item erstellen</h2>
<?PHP

if(isset($_POST['submit']) && $_POST['submit']=="erstellen") {

if(checkInt($_POST['aid'])) {
$sqlCmd = "SELECT COUNT(*) AS checkIn FROM account.account WHERE id='".$_POST['aid']."' LIMIT 1";
$getCount = mysql_fetch_object(mysql_query($sqlCmd,$sqlServ));
if($getCount->checkIn==1) {

if(!empty($_POST['window']) && checkInt($_POST['position']) && !empty($_POST['itemtyp']) && checkInt($_POST['stufe']) && checkInt($_POST['stapelmenge'])) {
if(!empty($_POST['vnum']) && checkInt($_POST['vnum'])) {
$avnum=$_POST['vnum'];
}
else {
if($_POST['itemtyp']>=11971 && $_POST['itemtyp']<=11974) {
$_POST['stufe']=0;
}
$avnum=$_POST['itemtyp']+$_POST['stufe'];
}
$sqlCmd="INSERT INTO player.item
(owner_id,window,pos,count,vnum,socket0,socket1,so cket2,attrtype0,attrvalue0,attrtype1,attrvalue1,at trtype2,attrvalue2,attrtype3,attrvalue3,attrtype4, attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalu e6)
VALUES
('".$_POST['aid']."','".$_POST['window']."','".$_POST['position']."','".$_POST['stapelmenge']."','".$avnum."','".$_POST['socket0']."','".$_POST['socket1']."','".$_POST['socket2']."','".$_POST['boni0']."','".$_POST['boniv0']."','".$_POST['boni1']."','".$_POST['boniv1']."','".$_POST['boni2']."','".$_POST['boniv2']."','".$_POST['boni3']."','".$_POST['boniv3']."','".$_POST['boni4']."','".$_POST['boniv4']."','".$_POST['boni5']."','".$_POST['boniv5']."','".$_POST['boni6']."','".$_POST['boniv6']."')";
$sqlQry = mysql_query($sqlCmd,$sqlServ) or die(mysql_error());
if($sqlQry) {
echo'<p class="meldung">Das Item wurde erfolgreich eingetragen.</p>';
}
}
else { echo'<p class="meldung">Erstellen fehlgeschlagen. Sie haben falsche Daten eingegeben.</p>'; }
}
else { echo'<p class="meldung">Keine vorhandene Account-ID.</p>'; }
}
else { echo'<p class="meldung">Keine valide Account-ID.</p>'; }

}



?>
<form action="index.php?s=admin&a=create_item" method="POST">
<table>
<tr>
<th class="topLine">Fuer AccountID:</th>
<td class="tdunkel"><input type="text" name="aid" size="11" value="<?PHP echo $_GET['acc']; ?>" maxlength="11"/></td>
</tr>
<tr>
<th class="topLine">Ort</th>
<td class="thell">
<select name="window">
<option value="SAFEBOX">Lager</option>
<option value="MALL">IS-Lager</option>
<!-- <option value="INVENTORY">Inventar</option> -->
</select>
</td>
</tr>
<tr>
<th class="topLine">Position (Max. 44)</th>
<td class="tdunkel"><input name="position" type="text" size="20" value="0" maxlength="20"/></td>
</tr>
<tr>
<th class="topLine">Item:</th>
<td class="thell">
<?PHP
listItems();
?>
<select name="stufe">
<?PHP
for($i=0;$i<10;$i++) {

echo "<option value=\"$i\">+$i</option>";

}
?>
</select>
oder vnum
<input type="text" name="vnum" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Menge (bei stapelbaren Items):</th>
<td class="tdunkel"><input type="text" name="stapelmenge" size="20" maxlength="20" value="1"/></td>
</tr>
<tr>
<th class="topLine">Stein #1:</th>
<td class="thell">
<select name="socket0">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Stein #2:</th>
<td class="tdunkel">
<select name="socket1">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Stein #3:</th>
<td class="thell">
<select name="socket2">
<?PHP
foreach($itemSteine AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #1:</th>
<td class="tdunkel">
<select name="boni0">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv0" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #2:</th>
<td class="thell">
<select name="boni1">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv1" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #3:</th>
<td class="tdunkel">
<select name="boni2">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv2" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #4:</th>
<td class="thell">
<select name="boni3">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv3" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #5:</th>
<td class="tdunkel">
<select name="boni4">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv4" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #6:</th>
<td class="thell">
<select name="boni5">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv5" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine">Bonus (Bonus, Wert) #7:</th>
<td class="tdunkel">
<select name="boni6">
<?PHP
foreach($itemBoni AS $aKey => $aValue) {
echo'<option value="'.$aKey.'">'.$aValue.'</option>';
}
?>
</select>
<input type="text" name="boniv6" size="6" maxlength="6"/>
</td>
</tr>
<tr>
<th class="topLine" colspan="2" style="text-align:center;"><input type="submit" value="erstellen" name="submit"/> &bull; <input type="reset" value="reset"/></th>
</tr>
</table>
</form>
<?PHP
}
else {
echo'<p class="meldung">Kein Zugriff auf diesen Bereich!</p>';
}
?>
<br>
<p><a href="javascript:history.back()">zurück</a>
Wer kann helfen? :$
Bladesa is offline  
Old 04/23/2014, 19:25   #2
 
elite*gold: 0
Join Date: Nov 2011
Posts: 376
Received Thanks: 23
Hmm, also soweit sieht alles i.O aus, konnte keinen Fehler endecken, vllt liegt es an was anderes?


LG
Paroles is offline  
Old 04/23/2014, 19:27   #3
 
elite*gold: 15
Join Date: Oct 2013
Posts: 114
Received Thanks: 15
Woran denn? Es geht ja nur um diese Funktion die nicht geht, "acc" kann nicht gefunden werden btw was auch immer damit ist :S
Bladesa is offline  
Old 04/23/2014, 19:37   #4
 
elite*gold: 0
Join Date: Nov 2011
Posts: 376
Received Thanks: 23
Ich lass einen Kollegen von mir sich das nochmal angucken, sobald er Feierabend hat, ich persönlich konnte jetzt keinen Fehler entdecken, deshalb wundert mich das grad sehr. Aber wie gesagt ich meld mich nochmal bei dir, sobald sich mein Kollege das angeguckt hat (Ist ein Profi in dem Bereich).

LG und Viel Erfolg bis dahin
Paroles is offline  
Thanks
1 User
Old 04/23/2014, 19:50   #5
 
elite*gold: 15
Join Date: Oct 2013
Posts: 114
Received Thanks: 15
danke, wer sonst noch ideen hätte würde mir sehr helfen!!!
Bladesa is offline  
Old 04/23/2014, 23:14   #6
 
Sikk.'s Avatar
 
elite*gold: 0
Join Date: Nov 2013
Posts: 1,095
Received Thanks: 372
Hast ne PM.
Sikk. is offline  
Old 04/23/2014, 23:20   #7
 
elite*gold: 15
Join Date: Oct 2013
Posts: 114
Received Thanks: 15
Danke aber hat leider nicht weiter geholfen.. Da wegen einem Idioten mein E*G gesperrt ist, biete ich dem jenigen der mir das löst in 2-3 Tagen dann müsste der Lock weg sein 50 E*G für die Lösung des Problems.. !!
Bladesa is offline  
Old 04/24/2014, 09:54   #8
 
theo1990's Avatar
 
elite*gold: 260
Join Date: Jul 2009
Posts: 1,123
Received Thanks: 180
ich kann dir eine lösung liefern gib mir das script und ich mach es. UMSONST.

edit: setzt einfach mal ein var_dump auf $_GET um zu schauen was im get alles vorhanden ist. Ansonsten schau was in der adresszeile oben steht. Wenn dort muss ein parameter existieren der da heißt "acc=WERT"
theo1990 is offline  
Old 04/27/2014, 01:25   #9
 
elite*gold: 15
Join Date: Oct 2013
Posts: 114
Received Thanks: 15
hilfeeeeeeeeeee
Bladesa is offline  
Old 04/27/2014, 04:02   #10
 
theo1990's Avatar
 
elite*gold: 260
Join Date: Jul 2009
Posts: 1,123
Received Thanks: 180
Wie gesagt. Lad mal dein aktuellen Stand hoch und ich schaue mal drüber
theo1990 is offline  
Old 04/27/2014, 12:55   #11
 
elite*gold: 0
Join Date: Jun 2013
Posts: 111
Received Thanks: 6
Bladesa Wiked **** Splif ist gefickt die *****
cannibvb is offline  
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



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


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.