13.03.2013, 22:46
First of all, change io_write to io_append. At least this way, if a file is missing, it will create it for you.
Add this line to the TOP of the SaveTeleport function:
The server may be crashing due to you opening a file that doesn't exist. Either do the following that I have listed above (io_append is definitely recommended however), otherwise make sure that the file in your script files directory exists. File path: "scriptfiles/LuxAdmin/Config/CreatedTeles.cfg"
If nine of those folders, directories or files exist, I would recommend that you create them...
Add this line to the TOP of the SaveTeleport function:
pawn Код:
if(!fexist("LuxAdmin/Config/CreatedTeles.cfg")) return 0;
If nine of those folders, directories or files exist, I would recommend that you create them...