28.04.2017, 01:45
All you needed to do was use fread properly... By using fixes.inc for this method, you simply avoid learning...
or if that was 'fine', your permissions on the folder were screwed...
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"); } |
Quote:
Do you have a scriptfiles folder? Is the server running on Linux? Make sure you have read/write permissions properly configured. |