Yet another itemshop problem...

Results 1 to 23 of 23
  1. #1
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Yet another itemshop problem...

    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:


  2. #2
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    umm...let me see your AccountItem.dbo table (in CREATE form) and line 590 in mod_itemshop.php

  3. #3
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    Line 590:
    Code:
                mssql_query("INSERT INTO AccountItem ([ItemShopID], [AID], [ItemID], [RentDate], [RentHourPeriod], [Cnt])VALUES('$itemid', '$aid', '$zitemid', GETDATE(), 60, 0)");
    And AccountItem:

  4. #4
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    in create form. (Tasks > something > CREATE)

  5. #5
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    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]

  6. #6
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Yeah My Problem its on this part

  7. #7
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    umm ok, im stumped, ill check it out myself.

  8. #8
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    YEAAHHHHHHHH I FIXED MINE ITEMS R GOING TO GAME NOW =))) THX A LOT WESMAN AND gign

    FIX:



  9. #9
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    you sure that will fix? didnt say anything about ShopItemID D:
    but oh well let gign try it and see if it fixes.

  10. #10
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Yes




    =))

  11. #11
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    ok it fixes it for me thanks :) mine gave me the error that says "column ShopItemID was not found"
    though idk about gign's error.
    thanks BRAZIL :D

  12. #12
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    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

  13. #13
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Yet another itemshop problem...

    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]

  14. #14
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    Yay, I fixed it :D i remade the table, since the table wasn't allowing insert values.

  15. #15
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    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?

  16. #16
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Need to Put Central Bank Tables

  17. #17
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    can you post the table here?

  18. #18
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Search For Menber Vicio Then Look at his thread

    OFF:
    Mine is working (storage)

  19. #19
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    It gives me an error saying that the somethingAccountItem already exists.

  20. #20
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Here its fixed all =)

  21. #21
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    what do u mean, i am saying it is not fixed, I still can't see items in the central bank

  22. #22
    Account Upgraded | Title Enabled! BRAZIL-PAULINHO is offline
    MemberRank
    Sep 2008 Join Date
    Brasil, RioLocation
    537Posts

    Re: Yet another itemshop problem...

    Need To Remade DB
    First Execute The Central Bank Fixes
    Then Execute The MPOG tables
    Then Execute ur DB
    Then Edit tHe tables in AccountItem

  23. #23
    Valued Member gign919191 is offline
    MemberRank
    Apr 2008 Join Date
    EarthLocation
    124Posts

    Re: Yet another itemshop problem...

    Oh, ok I am going to try that now



Advertisement