[Ajuda] Verificar se nome da string existe.
#10

Quote:
Originally Posted by PT
Посмотреть сообщение
Se estudares em vez de andares a procura que te faзam o trabalho na mao, tambem se torna simples pra vc.
Fiz deste jeito mais nгo vai cara, nгo funfa. o nome da nova conta nгo aparece no arquivo do ip

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;
            }                      
        }  
    }
Reply


Messages In This Thread
Verificar se nome da string existe. - by Duk - 07.06.2015, 16:23
Re: Verificar se nome da string existe. - by ipsLuan - 07.06.2015, 16:31
Re: Verificar se nome da string existe. - by Duk - 07.06.2015, 16:49
Re: Verificar se nome da string existe. - by ipsLuan - 07.06.2015, 16:49
Re: Verificar se nome da string existe. - by Duk - 07.06.2015, 16:56
Re: Verificar se nome da string existe. - by Duk - 07.06.2015, 17:01
Re: Verificar se nome da string existe. - by ipsLuan - 07.06.2015, 17:05
Re: Verificar se nome da string existe. - by Duk - 07.06.2015, 17:13
Re: Verificar se nome da string existe. - by PT - 07.06.2015, 17:37
Re: Verificar se nome da string existe. - by Duk - 07.06.2015, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)