[Ajuda] /daradmin
#4

Quote:
Originally Posted by ZeZin
Посмотреть сообщение
Mande a funзгo
pawn Код:
SalvarAdmins();
PHP код:
public SalvarAdmins()
{
    new 
idx;
    new 
Filefile2;
    while (
idx sizeof(AdmInfo))
    {
        new 
coordsstring[256];
        
format(coordsstringsizeof(coordsstring), "%s,%d|\n",AdmInfo[idx][AdminNome],AdmInfo[idx][AdminNivel]);
        if(
idx == 0)
        {
            
file2 fopen("Configs/Admins.cfg"io_write);
        }
        else
        {
            
file2 fopen("Configs/Admins.cfg"io_append);
        }
        
fwrite(file2coordsstring);
        
idx++;
        
fclose(file2);
    }
    return 
1;

Reply


Messages In This Thread
/daradmin - by MarianaTorres - 18.04.2015, 14:14
Re: /daradmin - by ZeZin - 18.04.2015, 14:18
Re: /daradmin - by ipsLuan - 18.04.2015, 14:19
Re: /daradmin - by MarianaTorres - 18.04.2015, 14:20
Re: /daradmin - by Vegassilva - 18.04.2015, 16:16
Re: /daradmin - by MarianaTorres - 18.04.2015, 20:15
Re: /daradmin - by Cleyson - 19.04.2015, 00:42
Re: /daradmin - by MarianaTorres - 19.04.2015, 01:59
Re: /daradmin - by ipsLuan - 19.04.2015, 13:23
Re: /daradmin - by MarianaTorres - 19.04.2015, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)