Yet another itemshop problem...

Junior Spellweaver
Joined
Apr 4, 2008
Messages
124
Reaction score
1
ok, I added an item to the shop and tried to buy it, it says item bought succesfully, but it gives an error on the background, and the item is not sent to my account.

Here is the error:
gign919191 - Yet another itemshop problem... - RaGEZONE Forums
 
Line 590:
Code:
            mssql_query("INSERT INTO AccountItem ([ItemShopID], [AID], [ItemID], [RentDate], [RentHourPeriod], [Cnt])VALUES('$itemid', '$aid', '$zitemid', GETDATE(), 60, 0)");

And AccountItem:
gign919191 - Yet another itemshop problem... - RaGEZONE Forums
 
Upvote 0
you mean like this?
Code:
USE [GunzDB]
GO
/****** Object:  Table [dbo].[AccountItem]    Script Date: 03/21/2009 13:21:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AccountItem](
	[ItemShopID] [int] IDENTITY(1,1) NOT NULL,
	[AID] [int] NOT NULL,
	[ItemID] [int] NOT NULL,
	[RentDate] [datetime] NULL CONSTRAINT [DF__AccountIt__RentD__116A8EFB]  DEFAULT (NULL),
	[RentHourPeriod] [smallint] NULL CONSTRAINT [DF__AccountIt__RentH__125EB334]  DEFAULT (NULL),
	[Cnt] [smallint] NULL CONSTRAINT [DF__AccountItem__Cnt__1352D76D]  DEFAULT (NULL),
 CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED 
(
	[ItemShopID] ASC
)WITH (PAD_INDEX  = OFF, IGNORE_DUP_KEY = OFF, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AccountItem]  WITH CHECK ADD  CONSTRAINT [Account_Table1_FK1] FOREIGN KEY([AID])
REFERENCES [dbo].[Account] ([AID])
GO
ALTER TABLE [dbo].[AccountItem] CHECK CONSTRAINT [Account_Table1_FK1]
GO
ALTER TABLE [dbo].[AccountItem]  WITH CHECK ADD  CONSTRAINT [Item_Table1_FK1] FOREIGN KEY([ItemID])
REFERENCES [dbo].[Item] ([ItemID])
GO
ALTER TABLE [dbo].[AccountItem] CHECK CONSTRAINT [Item_Table1_FK1]
 
Upvote 0
It's not fixed :S i don't get it D:

I tried to execute this query, still didn't work.

Code:
Select *
from dbo.AccountItem
SET IDENTITY_INSERT AccountItem ON
 
Upvote 0
gign delete AccountItem.dbo and execute this :
Code:
USE [GunzDB]
GO
/****** Object:  Table [dbo].[AccountItem]    Script Date: 03/21/2009 12:04:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AccountItem](
	[AIID] [int] IDENTITY(1,1) NOT NULL,
	[AID] [int] NOT NULL,
	[ItemID] [int] NOT NULL,
	[RentDate] [datetime] NULL CONSTRAINT [DF__AccountIt__RentD__116A8EFB]  DEFAULT (NULL),
	[RentHourPeriod] [smallint] NULL CONSTRAINT [DF__AccountIt__RentH__125EB334]  DEFAULT (NULL),
	[Cnt] [smallint] NULL CONSTRAINT [DF__AccountItem__Cnt__1352D76D]  DEFAULT (NULL),
	[ShopItemID] [int] NOT NULL,
 CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED 
(
	[AIID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[AccountItem]  WITH CHECK ADD  CONSTRAINT [Account_Table1_FK1] FOREIGN KEY([AID])
REFERENCES [dbo].[Account] ([AID])
GO
ALTER TABLE [dbo].[AccountItem] CHECK CONSTRAINT [Account_Table1_FK1]
GO
ALTER TABLE [dbo].[AccountItem]  WITH CHECK ADD  CONSTRAINT [Item_Table1_FK1] FOREIGN KEY([ItemID])
REFERENCES [dbo].[Item] ([ItemID])
GO
ALTER TABLE [dbo].[AccountItem] CHECK CONSTRAINT [Item_Table1_FK1]
 
Upvote 0
another problem appears... -.-

i buy the item, it appears on my items, but i go to the storage in-game and the item is not there.

iscashitem = "true" on zitem.xml.

Help on how to fix storage?
 
Upvote 0
Back