Czopeq
Advanced User
- Joined
- Jun 29, 2015
- Messages
- 191
- Reaction score
- 6
Hello, mam problem z wprowadzeniem tekstu do ramki, chc? ?eby wy?wietla?o item przez podane Id jednak wywala mi ca?y czas b??dy w konsoli.
[LUA]Tabela = {
["jeden"] = { storage = 1001,count = 10, item1 = 1740},
["dwa"] = { storage = 1002,count = 15, item1 = 1741},
["trzy"] = { storage = 1003,count = 30, item1 = 1742}
}
<talkaction words="/dialog" event="buffer">
local param = string.lower(param)
local str = ""
str = str .. "Tekst :\n\n"
for k, v in pairsByKeys(Tabela) do
local stor = getPlayerStorageValue(cid, v.storage)
str = str..k.. " " ..getItemNameById(v.item1).." = ".. ("["..(stor).."/"..v.count.."]") .."\n"
end
str = str .. ""
return doShowTextDialog(cid, 8983, str)
</talkaction>
[/LUA]
Bez ..getItemNameById(v.item1).. niema ?adnych b??d?w.. wy?wietla "stor" i "count".
[LUA]Tabela = {
["jeden"] = { storage = 1001,count = 10, item1 = 1740},
["dwa"] = { storage = 1002,count = 15, item1 = 1741},
["trzy"] = { storage = 1003,count = 30, item1 = 1742}
}
<talkaction words="/dialog" event="buffer">
local param = string.lower(param)
local str = ""
str = str .. "Tekst :\n\n"
for k, v in pairsByKeys(Tabela) do
local stor = getPlayerStorageValue(cid, v.storage)
str = str..k.. " " ..getItemNameById(v.item1).." = ".. ("["..(stor).."/"..v.count.."]") .."\n"
end
str = str .. ""
return doShowTextDialog(cid, 8983, str)
</talkaction>
[/LUA]
Bez ..getItemNameById(v.item1).. niema ?adnych b??d?w.. wy?wietla "stor" i "count".