Justin123456
New Member
- Joined
- Mar 24, 2011
- Messages
- 177
- Reaction score
- 4
Hey everyone I keep getting this error whenever I open the book with writing in it that has the id of 1964 and uniqueid 65534, it gives me this error:
Here's my rwitems script:
I'm using TFS 0.3.6
Thanks everyone! I'll REP whoever helps!
Code:
[26/06/2012 14:24:26] [Error - Action Interface]
[26/06/2012 14:24:26] data/actions/scripts/rwitems.lua:onUse
[26/06/2012 14:24:26] Description:
[26/06/2012 14:24:26] data/actions/scripts/rwitems.lua:5: attempt to call global 'doShowTextWindow' (a nil value)
[26/06/2012 14:24:26] stack traceback:
[26/06/2012 14:24:26] data/actions/scripts/rwitems.lua:5: in function <data/actions/scripts/rwitems.lua:1>
Here's my rwitems script:
Code:
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,100,1)
end
else
if item.itemid == 2598 then
doShowTextWindow(item.uid,0,0)
end
end
return 1
end
I'm using TFS 0.3.6
Thanks everyone! I'll REP whoever helps!