Sisqo0 Posted June 2, 2019 Share Posted June 2, 2019 how to output chat in ( .log ) file i have created ?? Thanks. Link to comment
Moderators Patrick Posted June 2, 2019 Moderators Share Posted June 2, 2019 (edited) -- SERVER SIDE function saveLog(text, fileName) if text and fileName then local path = "logs/"..fileName..".log" if not fileExists(path) then fileCreate(path) end local file = fileOpen(path) local fileSize = fileGetSize(file) fileSetPos(file, fileSize) fileWrite(file, text.."\n") fileClose(file) return true end return false end Something like that not tested Edited June 2, 2019 by stPatrick 1 Link to comment
Sisqo0 Posted June 2, 2019 Author Share Posted June 2, 2019 Yes. That's what i wanted Thank you Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now