07.06.2015, 17:40
Quote:
Se estudares em vez de andares a procura que te faзam o trabalho na mao, tambem se torna simples pra vc.
|
pawn Код:
new STG[64], PegarIP[16], string[64];
new File:Nconta = fopen("InfoJogadores/IPs/%s.ini", io_read);
GetPlayerIp(playerid, PegarIP, 16);
format(STG, 64, "InfoJogadores/IPs/%s.ini", PegarIP);
if(!DOF2_FileExists(STG))
{
DOF2_CreateFile(STG);
DOF2_SetString(STG, "Conta", Nome_Conta(playerid));
DOF2_SaveFile();
}
else if(Nconta)
{
while(fread(Nconta, string))
{
if(strfind(string, "conta1") != -1)
{
DOF2_CreateFile(STG);
DOF2_SetString(STG, "Conta1", Nome_Conta(playerid));
break;
}
else if(strfind(string, "Conta2") != -1)
{
DOF2_CreateFile(STG);
DOF2_SetString(STG, "Conta2", Nome_Conta(playerid));
break;
}
else if(strfind(string, "Conta3") != -1)
{
DOF2_CreateFile(STG);
DOF2_SetString(STG, "Conta3", Nome_Conta(playerid));
break;
}
}
}