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)