help my server 5.4 connection error buy in itemmall

06/21/2018 11:38 rendel12#1
:mad::mad::mad::mad: pls help is server
06/21/2018 13:03 elitonfarol9#2
What SQL do you use?
Try to take a look at these posts: [Only registered and activated users can see links. Click Here To Register...] Trayne01 and [Only registered and activated users can see links. Click Here To Register...] shen1l
06/23/2018 06:15 anon112#3
Accept me In Skype Rendel << Anon Anon >>
06/25/2018 12:01 [GM]-RazoR-*#4
PS_GameData

Quote:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

create Proc [dbo].[usp_Save_User_BuyPointItems2]

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

AS

SET NOCOUNT ON
--SET XACT_ABORT ON

DECLARE @UseType int
DECLARE @Ret int
DECLARE @RemainPoint int
DECLARE @OrderNumber int
DECLARE @ReturnValue int

SET @Ret = 0

SET @UseType = 1 -- ??

BEGIN DISTRIBUTED TRANSACTION

/*========================================
??? ??
??? ?? ?? ?? UID ? ?? ?? UID? ??? ???? ???.
procRequestOrderProductByGame

???? UID @buyClientUserNumber BIGINT
???? UID @receiveClientUserNumber BIGINT
????? @itemCode VARCHAR(50)
?? ?? @resultCode SMALLINT OUTPUT
?? ? ?? @cashBalanceAfterOrder INT OUTPUT
???? @orderNumber INT OUTPUT

resultCode
0 ??
1 ????
2 ?? ??? ???? ??
3 ?? ???? ???? ??
5 DB??
6 ????
=========================================*/
EXEC @ReturnValue = game.PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END

/*IF ( @Ret <> 0 )
BEGIN
INSERT INTO PointErrorLog( UserUID, CharID, ProductCode, Ret) VALUES( @UserUID, @CharID, @ProductCode, @Ret )
GOTO ERROR
END
---------------------------------------------
*/

-- ??? ?? ??
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCo de,UseDate,RemainPoint,OrderNumber)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@UseDate,@RemainPoint,@OrderNumber)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END

COMMIT TRAN
RETURN 1

ERROR:
ROLLBACK TRAN
RETURN -1


SET XACT_ABORT OFF
SET NOCOUNT OFF

GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

C:\ShaiyaServer\SERVER\PSM_Client\Bin

ItemMallFix.dll
msado15.dll
msado15.tlh
ps_dbAgent.exe
ps_game.exe

Download; [Only registered and activated users can see links. Click Here To Register...]
06/25/2018 17:46 [DEV]Wan#5
Quote:
Originally Posted by rendel12 View Post
:mad::mad::mad::mad: pls help is server
you need PsDBAgent for ep 4.5 to fix dc +11