06.06.2011, 16:19
Me tira uma duvida ... Se eu fizesse desta forma, estaria certo ?
PHP код:
new Tel[MAX_PLAYERS];
public Registro(playerid) //EXEMPLO
{
Telefone(playerid);
return 1;
}
public Telefone(playerid)
{
new rand, n[24], save[40];
rand = random(9999);
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, n, sizeof(n));
format(save, sizeof(save), "Contas/%s.txt",n);
if(dini_Int(save, "Telefone") == rand)
{
Telefone(playerid);
return 1;
}
Tel[playerid] = rand;
dini_IntSet(save, "Telefone", rand);
}
return 1;
}