19.07.2015, 18:51
PHP код:
/*
ipsLuan - http://forum.sa-mp.com/member.php?u=194873
*/
stock Ler(name[], playerid)
{
new nomes[255];
new File:archive;
archive = fopen(name, io_read);
while(fread(archive, nomes))
SendClientMessage(playerid, 0xFFFFFFFF, nomes);
fclose(archive);
}
stock Escrever(name[], text[])
{
new string[128];
format(string, sizeof(string), "%s\r\n", text);
new File:archive;
archive = fopen(name, io_append);
fwrite(archive, string);
fclose(archive);
}
PHP код:
for(new i = 0; i < 6; i++)
Escrever("admins.cfg", "Luan_Argolo");
Ler("admins.cfg", playerid);