bigcanuck

LUA help

3 posts in this topic

Hey I'm hoping someone here can help me with some lua scripting... I've coverting some stuff from LUA 4 to 5 and I need to fix the file IO and don't know how here is the current code

<code>

Files = {

Settings = "config.txt",

Commands = "cmd.txt",

Folder = "rukus",

List = "list.txt",

rList = "requests.txt",

OpHelp = "ophelp.txt",

Help = "help.txt",

TopPosters = "top_posters.txt",

Pending = "list.dat",

Share = "share.txt",

Online = "last_seen.txt"

}

require(Files.Folder.."/"..Files.Commands)

require(Files.Folder.."/"..Files.Settings)

require(Files.Folder.."/"..Files.List)

require(Files.Folder.."/"..Files.rList)

require(Files.Folder.."/"..Files.TopPosters)

require(Files.Folder.."/"..Files.Share)

require(Files.Folder.."/"..Files.Online)

</code>

Thanks in advance

bigcanuck

Share this post


Link to post
Share on other sites

Hey I'm hoping someone here can help me with some lua scripting... I've coverting some stuff from LUA 4 to 5 and I need to fix the file IO and don't know how here is the current code

<code>

Files = {

Settings = "config.txt",

Commands = "cmd.txt",

Folder = "rukus",

List = "list.txt",

rList = "requests.txt",

OpHelp = "ophelp.txt",

Help = "help.txt",

TopPosters = "top_posters.txt",

Pending = "list.dat",

Share = "share.txt",

Online = "last_seen.txt"

}

require(Files.Folder.."/"..Files.Commands)

require(Files.Folder.."/"..Files.Settings)

require(Files.Folder.."/"..Files.List)

require(Files.Folder.."/"..Files.rList)

require(Files.Folder.."/"..Files.TopPosters)

require(Files.Folder.."/"..Files.Share)

require(Files.Folder.."/"..Files.Online)

</code>

Thanks in advance

bigcanuck

I fixed the syntax error that I was getting... but now there's a different issue I'll attache the code if you guys want to check it out. what's wrong is it isn't excepting code from the hub chat.

Share this post


Link to post
Share on other sites