Server Crashing after Command
#6

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
I would suggest, that the folder "admini" doesn't exist.

You should write it like this:

PHP код:
CMD:adminlist(playerid)
{
    const 
MAX_ADMINS 20;
    new 
tmp[32],string[MAX_PLAYER_NAME*MAX_ADMINS];
    for(new 
i,File:fMAX_ADMINSi++)
    {
        
format(tmp,sizeof(tmp),"admini/%d.txt",i);
        if(!
fexist(tmp)) continue;
        
fopen(tmp,io_read),fread(f,tmp),fclose(f),
        
strcat(string,tmp),strcat(string,"\n");
    }
    return 
1;

But actually it would be smarter...to write it all in one file, or use a database like MySQL or SQLite
TY its working now
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)