Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 10:14

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

Advertisement



Script problem....

Discussion on Script problem.... within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
Script problem....

Hello guys ... i want to insert all values from TITEMTABLE_BACKUP in TITEMTABLE but if i set "SELECT TOP 1" the function inserted in the table the first object what corresponding with(dwOwnerID) .. I want to insert my all objects that correspond with dwOwnerID, if I delete (TOP 1) receive the following error : 21000 - [SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
i hope you can help me , thx
Here is script:
EDIT:TENTERSERVER execute this script
Appius4S is offline  
Old 03/12/2015, 16:57   #2
 
elite*gold: 0
Join Date: Nov 2013
Posts: 431
Received Thanks: 254
Deleted
NightProfit is offline  
Old 03/12/2015, 16:59   #3
 
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
facepalm ... you read what i write ?
Appius4S is offline  
Old 03/12/2015, 17:16   #4
 
elite*gold: 215
Join Date: May 2011
Posts: 217
Received Thanks: 461
Why you are doing it so hard? Just make INSERT INTO TITEMTABLE SELECT * FROM TITEMTABLE_BACKUP WHERE dwOwnerID = @dwCharID
iJirkusCZ is offline  
Thanks
1 User
Old 03/12/2015, 17:36   #5
 
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
yeah i have do this ... now 2 min ago thx anyway after i finish i will post bypass here
Appius4S is offline  
Old 03/12/2015, 17:37   #6
 
Syntaxfehler's Avatar
 
elite*gold: 1
Join Date: Jan 2013
Posts: 335
Received Thanks: 293
Script:

PHP Code:
ALTER PROCEDURE [dbo].[test]
@
dwCharID        INT
AS
        
INSERT INTO TGAME_GSP.dbo.TITEMTABLE SELECT FROM TGAME_GSP.dbo.TITEMTABLE_BACKUP WHERE dwOwnerID = @dwCharID 
Edit:

Too late, I didn't refresh.
Syntaxfehler is offline  
Thanks
4 Users
Old 03/12/2015, 20:20   #7
 
elite*gold: 0
Join Date: Nov 2010
Posts: 214
Received Thanks: 171
You can use the pointers as well.
Sicarium is offline  
Reply


Similar Threads Similar Threads
C++ Script Problem
08/24/2011 - C/C++ - 9 Replies
Hi, ich taste mich grade an C++ ran und habe schon mein ersten kleines Programm geschrieben: #include <iostream.h> // Das Hallo C++ Programm int main() { cout << "Hallo C++!\n"; return 0; }
Hen Script Problem... -.-
11/04/2010 - Metin2 Private Server - 12 Replies
Joa hallo Leute, mich plagt seid dem ich das Script eine doofe Fehlermeldung die das Script zum absturz bringt <.< Man kann sich nicht mehr registieren, man kann sich einloggen aber nicht mehr in den Itemshop oder in andere Kategorien, es wird dann angezeigt man solle sich erst einloggen. Hier mal die Fehlermeldung: Warning: session_start() : Cannot send session cookie - headers already sent by (output started at C:\xampplite\htdocs\index.php:7) in C:\xampplite\htdocs\index.php on...
Problem VB 10 Patcher Script Problem
09/20/2010 - .NET Languages - 8 Replies
Hayho liebe Com. ich habe mal wieder einen ganz netten Patcher gescriptet, für einen metin2 P Server, da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
DB Bot Script Problem
07/21/2010 - SRO Private Server - 1 Replies
Hey Guys, I have a Problem with the Scripts+Loop. I load a Script e.g. for Bandits. THe Problem is, the Bot doesnt run to the Hunting place and he doesnt Port back to town. I read that i must start at Hotan? Is that true cause Im just lvl 20.. Thanks for ur help =) edit: Im playing on swsro2
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem!
06/21/2010 - Metin2 Private Server - 11 Replies
hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler : http://img541.imageshack.us/img541/8140/24955249. png und wenn ich dann die datei öffne und in die zeile gehe kommt: while($row = mysql_fetch_array($ergebnis)) kann mir jmd helfen?



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


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.