• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem With Store

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 :
c5e2983c1c2183f89804f0ef22bea437.png

offers = {
{
icons = { "" },
name = "Lion Hammer",
price = 150,
itemtype = 39089,
description = "",
type = GameStore.OfferTypes.OFFER_TYPE_ITEM,
},
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 :/

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
And this is this line
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:
PHP:
  icons = { "" },
          name = "Whacking driller of fate",
          price = 100,
          itemtype = 9598,
          count = 1,
          description = "<i>This nifty gadget can be used for many vital and less vital purposes.</i>\n\n&#8226; Rope, Shovel, Pick, Machete, Crowbar and Kitchen Knife ",
          type = GameStore.OfferTypes.OFFER_TYPE_ITEM,
 
Back
Top