11.02.2014, 14:20
A function was used inside OnGameModeInit and crashed the server due to an invalid file handle. Before reading from a file, make sure it's valid.
An example:
As for that function that used fread inside, you can find it by compiling with debug info. Re-compile, run the server and check the new logs. It should say its name in "#1 ... in ...(function name here)".
An example:
pawn Код:
new File: file = fopen(...);
if (file) // valid handle
{
// code.. use fread, fwite and fclose inside here.
}