[Ajuda] Ler contas.
#10

PHP код:
/* 

    ipsLuan - http://forum.sa-mp.com/member.php?u=194873

*/

stock Ler(name[], playerid)
{
    new 
nomes[255];
    new 
File:archive;
    
archive fopen(nameio_read);
    while(
fread(archivenomes)) 
        
SendClientMessage(playerid0xFFFFFFFFnomes);
    
fclose(archive);
}

stock Escrever(name[], text[])
{
    new 
string[128];
    
format(stringsizeof(string), "%s\r\n"text);
    new 
File:archive;
    
archive fopen(nameio_append);
    
fwrite(archivestring);
    
fclose(archive);

Exemplos de uso:
PHP код:
for(new 06i++)
        
Escrever("admins.cfg""Luan_Argolo");

Ler("admins.cfg"playerid); 
Reply


Messages In This Thread
Ler contas. - by Duk - 19.07.2015, 17:19
Re: Ler contas. - by CaioTJF - 19.07.2015, 17:21
Re: Ler contas. - by Duk - 19.07.2015, 17:22
Re: Ler contas. - by CaioTJF - 19.07.2015, 17:26
Re: Ler contas. - by andrew01000 - 19.07.2015, 17:27
Re: Ler contas. - by ipsLuan - 19.07.2015, 18:13
Re: Ler contas. - by Duk - 19.07.2015, 18:15
Re: Ler contas. - by CaioTJF - 19.07.2015, 18:28
Re: Ler contas. - by ScripterInicianteBR - 19.07.2015, 18:40
Re: Ler contas. - by ipsLuan - 19.07.2015, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)