01.01.2017, 10:46
Yes, the mistake is in Server_Save function. You do not check if the file handle is valid (if file was opened successfully).
You can fix it by taking a look at the wiki examples I linked you. They provide the correct way of doing this right after the comment "Check, if file is open".
You can fix it by taking a look at the wiki examples I linked you. They provide the correct way of doing this right after the comment "Check, if file is open".