Item Mall Error 0

09/14/2012 19:46 Igris32#1
I just open my private server ep 4.5 with files i found here on elitepvpers 1 week ago and everything work fine..everything...till yesterday..i come in game,buy Apparence Change Scroll and i dc..error 0. (wtf)
I lost 1 whole day by reading posts on interent but i didnt found solution anywhere soo...i delet whole server and re-make it from zero..
The 1st thing i try when i re-make server was:
-enter with the origin account (admin / admin123)(the only 1 that exist) and buy something from item mall (original one) but i get dc (error 0)
Thats strange cuz i was at 0 Ap and item that i try buy was 99AP soo normaly if item mall work fine it have to say "inssufcient point" and not dc me with error 0..I read on orther posts that some ppl have this error when buy some item that cost AP soo i set cost to 0 AP and try buy again..but nothing change..same error 0 every time.
Thta mean the problem wasnt my Cash.SData but something different and,like i say befor i didnt found any solution.
Dont answer me "use search bottom" cuz i alredy use it and i read 50 useless thread with no solution...
09/14/2012 20:52 TeddyBear94#2
mh what amount of change scroll u putted in? if u put a to high number in it can dc u and ur server
09/14/2012 21:19 Igris32#3
Quote:
Originally Posted by TeddyBear94 View Post
mh what amount of change scroll u putted in? if u put a to high number in it can dc u and ur server
i know what u talk about,that happend alredy but only with potion.with orther item it say "inventory is full".
anyway apparance change scroll is in stock of 1 in Cash.SData and also in Item.SData soo the problem is not that.
09/14/2012 21:20 JohnHeatz#4
Can you show us the logs in which this is shown?
09/14/2012 22:24 Igris32#5
Quote:
Originally Posted by JohnHeatz View Post
Can you show us the logs in which this is shown?
Here is the error:

Quote:
2012-09-14 22:09:47 PS_DBAGENT__system log start (DBAgent01)

2012-09-14 22:09:54 connect game, Name=



2012-09-14 22:09:54 connect game, Name=



2012-09-14 22:11:04 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Errore durante la conversione del tipo di dati da varchar a datetime., SQL STATE: 42000, NATIVE ERROR: 8114 (0x1FB2)

2012-09-14 22:11:04 SaveBuyPointItem 10 Titan qerr=0, {?=call usp_Save_User_BuyPointItems_NCash(1,10,0,'B1_free0 021','2012-09-14 22:11:04')}
Anway i tryied to make this
Quote:
Proc [dbo].[usp_Save_User_BuyPointItems_NCash]
@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@textDate varchar(30)
as
Didnt Work..

Im sure that SQL Server 2005 make this error but im not pro soo i dont know how to fix.
Edit: i think i will try to download SQL 2012 :D But not sure if it will work on XP SP3
09/15/2012 18:52 x-DoeSn'TxMaTTeR-x#6
I'm having this error too now T.T
So..I tought that was bout installation fkd up and i formatted the VB.
Reinstalled all sent item and cash query started the client and...Still error 0.
But I saw 1 thing.Really strange..
When i started the game,and i went to create a toon, it said error Name already exist.
The very very first and second time i formatted all and reinstalled all...this didn't happened...
Now with all clean, i got this error.And after i fixed it, the item mall continued with error 0.
If you look in epvp, you will see no one have the fix for this..Yeah...there's a guide in the index too but it dont' really work..
there may be an error in the NAME ALREADY EXIST FIX query that fk up the item mall?
I'm sure these 2 things are linked.
Let us know pls! Don't leave us xD


Quote:
USE [PS_GameData]
GO
drop procedure [dbo].[usp_Save_Char_Item_Add_E]
GO

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO


/****** 개체: 저장 프로시저 dbo.usp_Save_Char_Item_Add_E ******/


CREATE Proc usp_Save_Char_Item_Add_E

@CharID int,
@ItemUID bigint,
@Bag tinyint,
@Slot tinyint,
@ItemID int,
@Type tinyint,
@TypeID tinyint,
@Quality int,
@Gem1 tinyint,
@Gem2 tinyint,
@Gem3 tinyint,
@Gem4 tinyint,
@Gem5 tinyint,
@Gem6 tinyint,
@Craftname varchar(20) = '',
@Count tinyint,
@MaketimeZ varchar(50),
@Maketype char(1)

AS
DECLARE @Maketime as datetime
SELECT @Maketime = CONVERT(datetime, @MaketimeZ, 120)
--SET NOCOUNT ON

IF(@Quality >= 5000)
BEGIN
SET @Quality=0
END

INSERT INTO CharItems
(CharID, bag, slot, ItemID, Type, TypeID, ItemUID, quality, gem1, gem2, gem3, gem4,
gem5, gem6, craftname, [count], maketime, maketype)
VALUES(@CharID, @Bag, @Slot, @ItemID, @Type, @TypeID, @ItemUID, @Quality, @Gem1, @Gem2, @Gem3, @Gem4,
@Gem5, @Gem6, @Craftname, @Count, @Maketime, @Maketype)

IF(@@ERROR = 0)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END

--SET NOCOUNT OFF



GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
09/15/2012 19:02 Igris32#7
Im almost sure that problem of Item Mall is in this query.

This is my query from: usp_Save_User_BuyPointItems_NCash

Quote:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[usp_Save_User_BuyPointItems_NCash]') AND type in (N'P', N'PC'))
BEGIN
EXEC dbo.sp_executesql @statement = N'

/****** Shoping Mall Fixed by sandolkakos Website: [Only registered and activated users can see links. Click Here To Register...] ******/



CREATE 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

'
END
09/15/2012 21:43 JohnHeatz#8
Code:
2012-09-14 22:11:04 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server][B][COLOR="Red"]Errore durante la conversione del tipo di dati da varchar a datetime[/COLOR][/B]., SQL STATE: 42000, NATIVE ERROR: 8114 (0x1FB2)
That is the error, just check for the way on doing this conversion, and you will get it fixed, as the error is telling you exactly that there was an "error during the conversion from varchar to datetime".
09/15/2012 22:56 x-DoeSn'TxMaTTeR-x#9
I resolved deleting my virtual machine reinstalling it with Omega server file and msql 2008 and not the 2005.
Ty anyway
09/16/2012 21:12 Igris32#10
Quote:
Originally Posted by JohnHeatz View Post
Code:
2012-09-14 22:11:04 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server][B][COLOR="Red"]Errore durante la conversione del tipo di dati da varchar a datetime[/COLOR][/B]., SQL STATE: 42000, NATIVE ERROR: 8114 (0x1FB2)
That is the error, just check for the way on doing this conversion, and you will get it fixed, as the error is telling you exactly that there was an "error during the conversion from varchar to datetime".
Ehm,tell me where is the problem dont help me to solve it.
I alredy know the problem is here ( i think) but i dont know to solve it. That way i ask help here :D
Quote:
CREATE 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
08/25/2014 16:16 qesha#11
hi guys i got insert error when i am trying to Execute Cash.sdata in SQL server 2005 it's says Msg 213, Level 16, State 1, Line 1
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 2
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 3
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 4
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 5
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 6
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 7
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 8
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 9
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 10
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 11
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 12
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 13
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 14
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 15
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 16
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 17
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 18
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 19
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 20
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 21
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 22
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 23
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 24
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 25
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 26
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 27
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 28
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 29
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 30
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 31
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 32
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 33
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 34
Insert Error: Column name or number of supplied values does not match table definition.
Msg 213, Level 16, State 1, Line 35
Insert Error: Column name or number of supplied values does not match table definition.
help me please
08/25/2014 16:53 Truth1010#12
You might want to post the actual values you are trying to input into SQL. I assume it is from the ShStudio script once you saved Cash.Sdata, and you're not trying to import the Sdata itself to your database..somehow..

If i remember correctly, it's because the values given by ShStudio don't include 1 or more of the useless columns in that DB table, you just need to drop/recreate the table without any columns that aren't present in the Sql Script made by ShStudio and it'll work properly.

This is an example of what i assume the data you are trying to write into SQL looks like.
And this is what my 'Cash' table looks like. Compare it to your own to see if you have any more/less columns.
08/25/2014 16:59 nubness#13
It's the good old issue. Remove the RowID column or make it an identity and it'll work.
07/27/2015 08:21 shaiyacreatureboang#14
Before you post it in SQL you add ('''Name of Sale', More......)
07/27/2015 11:11 Pave99#15
Quote:
Originally Posted by shaiyacreatureboang View Post
Before you post it in SQL you add ('''Name of Sale', More......)
Please don't bring back old threads.