[Tutorial] How to make simple logs for your server.
#10

- To remove the server crashing, make a check for the file. If it doesn't exist, create it
- Check to make sure the file was opened correctly before writing to it
- Like mentioned, there's no need to make it a public function
- Format the line to use "\r\n", not just "\n" to avoid any accidents of it not writing at the beginning of the line
- This looks just like the code (same variable names and format, spacing, etc) that Seif_'s code used (in SeifAdmin)

Just my two cent.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)