12.02.2019, 20:38
I recommend using Crashdetect plugin to know exactly why, however there's a chance that the file handle (in your case - adminfile is invalid)
Try:
Try:
Код:
for(new i = 0; i < 20; i++) { format(afile,sizeof(afile),"admini/%d.txt",i); new File:adminfile = fopen(afile,io_read); if(adminfile) { fread(adminfile,test); fclose(adminfile); format(test2,sizeof(test2),"%s\n",test); strcat(test1,test2); } else printf("[ERROR] file admini/%d.txt doesn't exist", i), continue; }