- Joined
- Apr 12, 2009
- Messages
- 126
- Reaction score
- 5
Not Hard to Fix and i dont know if it works 100% but the basic works
First:
Execute this Fix For Central Bank:
After That Fix Tables And Scripts :
The last part =)
Open dbo.AccountItem table And Right Click > Design :
Now Try To Add, Buy , Use the Items . It Works *-*
i dont remenber if i forgot something
Credits: Me,Vicio,Diosz,Wesman2232
REALLY IMPORTANT!!!!:
to work you need to change in zitem IsCashItem="false" to IsCashItem="true"
First:
Execute this Fix For Central Bank:
PHP:
CREATE TABLE [dbo].[AccountItems](
[AID] [int] NULL,
[ItemID] [int] NULL,
[AIID] [int] IDENTITY(1,1) NOT NULL,
[RentPeriodRemainder] [int] NULL
) ON [PRIMARY]
PHP:
CREATE PROCEDURE [dbo].[spBringAccountItem]
-- Add the parameters for the stored procedure here
@nAID INT,
@nCID INT,
@nAIID INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @nItemID INT
SELECT @nItemID=ItemID
FROM AccountItems
WHERE AID = @nAID AND AIID = @nAIID
DELETE FROM AccountItems
WHERE AID = @nAID AND AIID = @nAIID AND ItemID = @nItemID
INSERT INTO Items VALUES (@nCID, @nItemID, NULL)
SELECT 0 As OrderCIID, @nItemID As ItemID
END
PHP:
CREATE PROCEDURE [dbo].[spBringBackAccountItem]
-- Add the parameters for the stored procedure here
@nAID INT,
@nCID INT,
@nCIID INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @nItemID INT
SELECT @nItemID=ItemID
FROM Items
WHERE CID = @nCID AND CIID = @nCIID
DELETE FROM Items
WHERE CID = @nCID AND CIID = @nCIID AND ItemID = @nItemID
INSERT INTO AccountItems VALUES (@nAID, @nItemID, NULL)
END
PHP:
CREATE PROCEDURE [dbo].[spSelectAccountItem]
-- Add the parameters for the stored procedure here
@AID INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT RentPeriodRemainder,AIID,ItemID
FROM
AccountItems
WHERE AID = @AID
END
After That Fix Tables And Scripts :
diosz said:good
Here are the files to the shop working properly = P
Just go to your database "GunzDB" -> tables -> Right click on "CasShop" Design and then choose edit in my image .....
![]()
![]()
do not edit the latest image bn let the "MaxWeight" sorry jiji
Okz
then replaced my files for your own and now works
go to the Web as admin and go to "Add Item to Shop" and add the weapon = P
Remember to do back up a file and the DB
Files = http://forum.ragezone.com/attachment.php?attachmentid=65960&d=1233191164
The last part =)
Open dbo.AccountItem table And Right Click > Design :
![Pauliinho - [Tut-Release]How to Fix MPOG Item Shop - RaGEZONE Forums Pauliinho - [Tut-Release]How to Fix MPOG Item Shop - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
Now Try To Add, Buy , Use the Items . It Works *-*
i dont remenber if i forgot something

Credits: Me,Vicio,Diosz,Wesman2232
Last edited: