• 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!

Lua Silly LUA error, please help

Guiaki

Member
Joined
Jan 3, 2011
Messages
137
Reaction score
8
Code:
function onSay(cid, words, param)
    local player = Player(cid)
    local players = Game.getPlayers()
    local playerCount = Game.getPlayerCount()
    local accid=getAccountNumberByPlayerName(getPlayerName(cid))
    local id = db.query('SELECT `itemid` FROM `znote_shop_orders` WHERE `id` = '.. accid ..';')
    item=id:getDataInt('itemid')
    local qtd= db.query('SELECT `count` FROM `znote_shop_orders` WHERE `id` = '.. accid ..';')
    amount=qtd:getDataInt('count')
    doPlayerAddItem(cid,id,qtd)
    player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Ai esta seu item")
    return false
end

Its been a long time since I don't code LUA, help me please, the error is the following:
in function getDataInt (line 7)
 
Back
Top