PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: bigcanuck on 12 November, 2006, 00:40:24

Title: File IO
Post by: bigcanuck on 12 November, 2006, 00:40:24
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)


How do I get this to run in Lua 5.1? 
Title: Re: File IO
Post by: bigcanuck on 12 November, 2006, 01:29:41
ok... so the syntax errors are gone now, however it's still not accpetion commands from the hub chat with the acception of -mm which does a mass message.

the code is attached.
Title: Re: File IO UPDATE
Post by: bigcanuck on 12 November, 2006, 01:39:49
UPDATE::


The showpending command and regpending commands do not work any ideas? the rest is ok.