• 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 Bug screen "attempt to concatenate field 'count' (a nil value)"

Nuckles

New Member
Joined
Mar 19, 2010
Messages
39
Reaction score
0
This script:

-- Vendendo Vials por use by warcraftzz

----- Configurações -----
local config = {
cost = 10, -- Dinheiro que ganhara por cada vial vendido DEFAULT 5GPS
item_id = 7635, -- ID DO VIAL
gold_id = 2148, -- ID DO GOLD COIN QUE É 2148 DIGITE 2160 PARA CRYSTAL COIN
}
function onUse(cid, item, frompos, item2, topos)
local count = getPlayerItemCount(cid,7635)
doPlayerRemoveItem(cid,config.item_id,count)
doPlayerAddItem(cid,config.gold_id,config.cost*count)
doPlayerSendTextMessage(cid,22,"Você vendeu ".. config.count .."")
doSendMagicEffect(frompos, 4)
end


The Bug:


[15:11:46.394] [Error - Action Interface]
[15:11:46.394] data/actions/scripts/sellvials3.lua:eek:nUse
[15:11:46.394] Description:
[15:11:46.394] data/actions/scripts/sellvials3.lua:13: attempt to concatenate field 'count' (a nil value)
[15:11:46.394] stack traceback:
[15:11:46.395] data/actions/scripts/sellvials3.lua:13: in function <data/actions/scripts/sellvials3.lua:9>


Helo plx :s
 
Back
Top