Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya
You last visited: Today at 08:37

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

Advertisement



error 0

Discussion on error 0 within the Shaiya forum part of the MMORPGs category.

Reply
 
Old 02/17/2011, 20:02   #16
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Can you paste you usp_Save_User_BuyPointItems_NCash stored procedure here and wrap it in code tags?
abrasive is offline  
Old 02/17/2011, 20:05   #17
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
That is that I have in this file

Quote:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


ALTER Proc [dbo].[usp_Save_User_BuyPointItems_NCash]

@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@UseDate datetime

AS

SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @UseType int
DECLARE @ReturnValue int

SET @UseType = 1 -- 掘衙

BEGIN DISTRIBUTED TRANSACTION


EXEC @ReturnValue = PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END
-- 檣 離馬(Old, 夥煎 UPDATE僥 陳塒唳辦 醴憮纂陛 號檜 橾橫陴)
--UPDATE PS_UserData.dbo.Users_Master SET Point=Point-@UsePoint WHERE UserUID=@UserUID
--IF( @@ERROR<>0 OR @@ROWCOUNT=0)
--BEGIN
-- GOTO ERROR
--END

-- 檣 煎斜 晦煙
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@UseDate)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END

COMMIT TRAN
RETURN 1

ERROR:
ROLLBACK TRAN
RETURN -1


SET XACT_ABORT OFF
SET NOCOUNT OFF
topazee is offline  
Old 02/17/2011, 20:20   #18
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Is anything underlined in red?

Also these have same random spaces in them:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@UseDate)
abrasive is offline  
Old 02/17/2011, 20:33   #19
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
nothing is said or written in red

there was just one error in pink

topazee is offline  
Old 02/17/2011, 20:39   #20
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Quote:
Originally Posted by topazee View Post
nothing is said or written in red

there was just one error in pink

That's not actually an error, it's just a built in function for SQL Server.

Do you get an error when you run this query, or does it work successfully?
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
abrasive is offline  
Old 02/17/2011, 20:41   #21
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
just when I buy an item in item mall that gives me an error 0
when I go see my log its giving me this error
topazee is offline  
Old 02/17/2011, 20:43   #22
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
just when I buy an item in item mall that gives me an error 0
when I go see my log its giving me this error
topazee is offline  
Old 02/17/2011, 20:46   #23
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Ok, but did you try running that query?
abrasive is offline  
Old 02/17/2011, 20:51   #24
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
this requete?

Quote:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


ALTER Proc [dbo].[usp_Save_User_BuyPointItems_NCash]

@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@UseDate datetime

AS

SET NOCOUNT ON
SET XACT_ABORT ON

DECLARE @UseType int
DECLARE @ReturnValue int

SET @UseType = 1 -- 掘衙

BEGIN DISTRIBUTED TRANSACTION


EXEC @ReturnValue = PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END
-- 檣 離馬(Old, 夥煎 UPDATE僥 陳塒唳辦 醴憮纂陛 號檜 橾橫陴)
--UPDATE PS_UserData.dbo.Users_Master SET Point=Point-@UsePoint WHERE UserUID=@UserUID
--IF( @@ERROR<>0 OR @@ROWCOUNT=0)
--BEGIN
-- GOTO ERROR
--END

-- 檣 煎斜 晦煙
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@UseDate)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END

COMMIT TRAN
RETURN 1

ERROR:
ROLLBACK TRAN
RETURN -1


SET XACT_ABORT OFF
SET NOCOUNT OFF
topazee is offline  
Old 02/17/2011, 20:55   #25
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
No, this query I asked you to run and tell me what happend:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
abrasive is offline  
Old 02/17/2011, 20:59   #26
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
j 'is code inserted new query?

Quote:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
sorry I'm beginner
topazee is offline  
Old 02/17/2011, 21:09   #27
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
I don't understand your question.

I wanted you to click on New Query and paste this in and execute it:
Code:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
Then let me know if it returns an error or not
abrasive is offline  
Old 02/17/2011, 21:13   #28
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
Quote:
Originally Posted by abrasive View Post
I don't understand your question.

I wanted you to click on New Query and paste this in and execute it:
Code:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
Then let me know if it returns an error or not
Msg 102, Level 15, State 1, Line 2
Syntaxe incorrecte vers 'AC_1000 75_1'.
topazee is offline  
Old 02/17/2011, 21:15   #29
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
Opps, I meant this one:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
abrasive is offline  
Old 02/17/2011, 21:19   #30
 
topazee's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
Msg 242, Level 16, State 3, Line 1
La conversion d'un type de données CHAR en type DATETIME a donné une valeur hors limite de date et d'heure.
L'instruction a été arrêtée.
topazee is offline  
Reply


Similar Threads Similar Threads
Crossfire error send error report? was kann man tun
08/24/2011 - CrossFire - 14 Replies
wenn ich crossfire starte kommt nach den hgw game watcher diese nachricht



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


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.