problem when start my server!! Help pls
#7

All you needed to do was use fread properly... By using fixes.inc for this method, you simply avoid learning...

Quote:

You are using fread without making sure the return value from fopen is not 0.

// bad code, will crash:
new File:fp = fopen("does-not-exist.txt", io_read);
new buf[128];
fread(fp, buf);
fclose(fp);
// good code, will not crash:
new File:fp = fopen("does-not-exist.txt", io_read);
if (fp) {
new buf[128];
fread(fp, buf);
fclose(fp);
} else {
printf("failed to open does-not-exist.txt");
}

or if that was 'fine', your permissions on the folder were screwed...

Quote:

Do you have a scriptfiles folder? Is the server running on Linux? Make sure you have read/write permissions properly configured.

Reply


Messages In This Thread
problem when start my server!! Help pls - by vikoo - 27.04.2017, 22:17
Re: problem when start my server!! Help pls - by onlyrage - 27.04.2017, 23:37
Re: problem when start my server!! Help pls - by Sew_Sumi - 27.04.2017, 23:38
Re: problem when start my server!! Help pls - by vikoo - 28.04.2017, 00:53
Re: problem when start my server!! Help pls - by aoky - 28.04.2017, 00:58
Re: problem when start my server!! Help pls - by vikoo - 28.04.2017, 01:33
Re: problem when start my server!! Help pls - by Sew_Sumi - 28.04.2017, 01:45
Re: problem when start my server!! Help pls - by vikoo - 28.04.2017, 01:54
Re: problem when start my server!! Help pls - by Sew_Sumi - 28.04.2017, 02:07
Re: problem when start my server!! Help pls - by vikoo - 28.04.2017, 02:22
Re: problem when start my server!! Help pls - by Sew_Sumi - 28.04.2017, 02:28
Re: problem when start my server!! Help pls - by vikoo - 28.04.2017, 02:35

Forum Jump:


Users browsing this thread: 2 Guest(s)