22.02.2014, 19:55
Search for any "fopen" in your script and verify that the path and filename you want to open exists.
fopen will still return something if the given file doesn't exist and store it in your supplied handle-variables.
Then after using fread with that invalid filehandle, it crashes because it cannot read from a non-existant file.
https://sampwiki.blast.hk/wiki/Fread
Checkout the first example to find out how to detect if the file exists.
MySQL has nothing to do with basic pawn natives that are only used to open/read/write/delete files.
fopen will still return something if the given file doesn't exist and store it in your supplied handle-variables.
Then after using fread with that invalid filehandle, it crashes because it cannot read from a non-existant file.
https://sampwiki.blast.hk/wiki/Fread
Checkout the first example to find out how to detect if the file exists.
MySQL has nothing to do with basic pawn natives that are only used to open/read/write/delete files.