eduardocosta
New Member
- Joined
- Aug 27, 2009
- Messages
- 17
- Reaction score
- 0
Hello guys, I need help with 1 command. First look my talkactions code.
talkactions/notice.lua
talkactions.xml
and I need to have a file in the main directory > example: noticetime.txt
Ok, but tfs 1.2 show me error :
Does anyone have the solution? Ty team.
talkactions/notice.lua
Lua:
function onSay(cid, words, param)
file = io.open('noticetime.txt','r')
notice = file:read(-1)
doShowTextDialog(cid,1950,notice)
file:close()
end
talkactions.xml
XML:
<talkaction words="!notice" script="notice.lua"/>
and I need to have a file in the main directory > example: noticetime.txt
Ok, but tfs 1.2 show me error :
Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/noticetime.lua: onSay
not enough memory
Does anyone have the solution? Ty team.
Last edited by a moderator: