• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Talkaction !notice help me TFS 1.2

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
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:
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.

What is the file content?
The error message is pretty clear, TFS is running out of memory, might be because of a loop (most likely not this case) or that you server / computer can barely run TFS with the datapack you are running.
 
Back
Top