Server Crashing after Command
#2

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:
Код:
    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;   
    }
Reply


Messages In This Thread
Server Crashing after Command - by LukaJozo - 12.02.2019, 18:44
Re: Server Crashing after Command - by Itzhak E. - 12.02.2019, 20:38
Re: Server Crashing after Command - by nbx2000 - 12.02.2019, 20:47
Re: Server Crashing after Command - by LukaJozo - 13.02.2019, 11:58
Re: Server Crashing after Command - by Kaliber - 13.02.2019, 12:24
Re: Server Crashing after Command - by LukaJozo - 13.02.2019, 13:54

Forum Jump:


Users browsing this thread: 2 Guest(s)