Server Won't to start
#5

https://sampwiki.blast.hk/wiki/Fread

Invalid file handle can crash the server. What I mean by that can be shown better with the example below:
pawn Код:
// WRONG WAY:
new File: fhandle = fopen(...);
fread(fhandle, string);
fclose(fhandle);
pawn Код:
// CORRECT WAY:
new File: fhandle = fopen(...);
if (fhandle) // if valid file handle
{
    fread(fhandle, string);
    fclose(fhandle);
}
In order to get the exact line: https://github.com/Zeex/samp-plugin-...ith-debug-info

Also update crashdetect to 4.15.1 instead of 4.13.1 version you loaded, update sscanf and add nativechecker last to be loaded to get rid of the messages.
Reply


Messages In This Thread
Server Won't to start - by Moroccan - 29.04.2015, 17:54
Re: Server Won't to start - by Banana_Ghost - 29.04.2015, 18:55
Re: Server Won't to start - by Moroccan - 29.04.2015, 19:47
Re: Server Won't to start - by Moroccan - 29.04.2015, 19:52
Re: Server Won't to start - by Konstantinos - 29.04.2015, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)