naroxx
New Member
- Joined
- Sep 10, 2013
- Messages
- 22
- Reaction score
- 2
Hi
I would like to ask if anyone know how to fix this? Am using OtServBR
Am trying add item to in game shop and when i try to buy it i got info :
In Engine i see this
And this is this line
I would like to ask if anyone know how to fix this? Am using OtServBR
Am trying add item to in game shop and when i try to buy it i got info :
Idk what could be wrong with this :/ I think maybe because this item can't go to Store Inbox or something but idk how to change this :/offers = {
{
icons = { "" },
name = "Lion Hammer",
price = 150,
itemtype = 39089,
description = "",
type = GameStore.OfferTypes.OFFER_TYPE_ITEM,
},
In Engine i see this
HTML:
[warning] [parseBuyStoreOffer] - Purchase failed due to an unhandled script error. Stacktrace: data/modules/scripts/gamestore/init.lua:1242: attempt to compare nil with number
PHP:
local inbox = player:getSlotItem(CONST_SLOT_STORE_INBOX)
if inbox and inbox:getEmptySlots() > offerCount then
for t = 1, offerCount do
inbox:addItem(offerId, offerCount or 1)
end
else
return error({ code = 0, message = "Please make sure you have free slots in your store inbox."})
end
end
Last edited: