Cant buy item in game PREMIUM shop
recently i added in game cash shop/vip shop whatever u call, in which we can buy items with coins. i fixed up the database and source.. I can buy bounty items but not cash items, it doesnt even pop up a msg after pressing buy button.. its like buy button is dead there..
my changes were as folows :
nBuyMode = 1; //cashshop
nBuyMode=2; //staff shop
else
Normal Mode //bounty shop
every thing is fine, i can see coins in my account, only thing is i cant buy any item. can anyone help me with this?
george told me you have to make separate packet for cashshop buy button.. can anyone suggest me, its database problem or source? and also give hints for fixes. !
Re: Cant buy item in game PREMIUM shop
again, it's not coded....
and you need the check in the spbuybountyitem
the sql part what i gave u
Re: Cant buy item in game PREMIUM shop
Quote:
Originally Posted by
SeaTroll
again, it's not coded....
and you need the check in the spbuybountyitem
the sql part what i gave u
fine but everything's fine with sql i think.. can buy bounty items also i can see coins in account..
Re: Cant buy item in game PREMIUM shop
Code:
IF ([thebuymode]= 1) BEGIN
UPDATE dbo.Account
SET Coins = Coins - @Price
WHERE AID = @AID
AND (Coins - @Price >= 0);
END
Do you have something like this in your dbo.spBuyBountyItem?
Re: Cant buy item in game PREMIUM shop
Quote:
Originally Posted by
Anju
Code:
IF ([thebuymode]= 1) BEGIN
UPDATE dbo.Account
SET Coins = Coins - @Price
WHERE AID = @AID
AND (Coins - @Price >= 0);
END
Do you have something like this in your dbo.spBuyBountyItem?
i already code that for him :P
Re: Cant buy item in game PREMIUM shop
Quote:
Originally Posted by
Anju
Code:
IF ([thebuymode]= 1) BEGIN
UPDATE dbo.Account
SET Coins = Coins - @Price
WHERE AID = @AID
AND (Coins - @Price >= 0);
END
Do you have something like this in your dbo.spBuyBountyItem?
yea deatroll did thatbut not working lol !
Quote:
Originally Posted by
SeaTroll
i already code that for him :P
dont b so selfish =P
Re: Cant buy item in game PREMIUM shop
Probably the MatchServer doesn't have the function to buy the staff or cash items.
Re: Cant buy item in game PREMIUM shop
Quote:
Originally Posted by
Anju
Probably the MatchServer doesn't have the function to buy the staff or cash items.
it has :|
Re: Cant buy item in game PREMIUM shop
It's most likely that the MatchServer problem.
Re: Cant buy item in game PREMIUM shop
can release the code?
relase code shop vip
Re: Cant buy item in game PREMIUM shop
debug at the cannot buy item line
Re: Cant buy item in game PREMIUM shop
Quote:
Originally Posted by
trunksx
debug at the cannot buy item line
nvm. i'll make new function ^^