darknelson
Member
- Joined
- Jun 19, 2011
- Messages
- 190
- Solutions
- 1
- Reaction score
- 15
im trying to use this script for show me txt file on dialog window
but shows me this error
OTX 3.10
but shows me this error
Lua:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/mounts.lua:eek:nSay
data/talkactions/scripts/mounts.lua:3: attempt to index global 'file' (a nil value)
stack traceback:
[C]: in function '__index'
data/talkactions/scripts/mounts.lua:3: in function <data/talkactions/scripts/mounts.lua:1>
Lua:
function onSay(cid, words, param)
file = io.open('mounts.txt', 'r')
notice = file:read(-1)
doShowTextDialog(cid, 7528, notice)
file:close()
end
OTX 3.10