PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: Psycho_Chihuahua on 13 March, 2005, 04:04:14

Title: is this correct?
Post by: Psycho_Chihuahua on 13 March, 2005, 04:04:14
am i right assuming that to convert to Lua 5 i would have to change this
function SendModeratorhelp(user)
readfrom("Data/moderatorhelp.txt")
DoRead(user)
end

to this

function ReadFile("Data/moderatorhelp.txt")
io.input("Data/moderatorhelp.txt")
for line in io:lines() do
end
io.input()
end
?