samuel157
/root
- Joined
- Mar 19, 2010
- Messages
- 447
- Solutions
- 3
- Reaction score
- 49
- Location
- São Paulo, Brazil
- GitHub
- Samuel10M
Lua:
[30/04/2022 23:13:55] [Error - Action Interface]
[30/04/2022 23:13:55] data/actions/scripts/rwitems.lua:onUse
[30/04/2022 23:13:55] Description:
[30/04/2022 23:13:55] data/actions/scripts/rwitems.lua:7: attempt to call global 'doShowTextWindow' (a nil value)
[30/04/2022 23:13:55] stack traceback:
[30/04/2022 23:13:55] data/actions/scripts/rwitems.lua:7: in function <data/actions/scripts/rwitems.lua:3>
Lua:
-- example of read/write on items--
function onUse(cid, item, frompos, item2, topos)
rw = getItemRWInfo(item.uid)
if rw and 1 then
if rw and 2 then
doShowTextWindow(item.uid,100,1)
else
doShowTextWindow(item.uid,0,0)
end
else
if item.itemid == 2598 then
doShowTextWindow(item.uid,0,0)
end
end
return 1
end