I need to log all entering users $MyInfo for 24h. The script only needs to write them in to a .txt file.
I don't care how large the log will be because the script is for temporary use only.
Hi,
--[[
$MyINFO log
Made by zero-cool
Request by Jaakko
]]--
file = "myinfo_log.txt"
time = 5 -- time to save all $MyINFO in minutes (1440 minutes = 1 day (24 hours))
function Main()
sTmp = ""
sec = 1000
min = sec*60
SetTimer(time*min)
StartTimer()
end
function MyINFOArrival(user, data)
sTmp = sTmp..data.."\n"
end
function OnTimer()
local handle = io.open(file,"a+")
handle:write(sTmp)
handle:flush()
handle:close()
sTmp = ""
end
Regards,
Why don't you use UserBekcisi (http://ptxscriptdb.psycho-chihuahua.net/download.php?list.74)? This will save all information about users what you need (or more :D)
Quote from: Hungarista on 27 June, 2006, 14:15:12
Why don't you use UserBekcisi (http://ptxscriptdb.psycho-chihuahua.net/download.php?list.74)? This will save all information about users what you need (or more :D)
Because he want save only $MyINFO and not all information ;)