[Ajuda] Mudar Nick/Senha
#1

opa , firme ?

eu peguei esse comando de mudar nick da HumildadeForever e estou com dificuldades de adaptalo em minha gm :/

pawn Код:
if(dialogid == DIALOG_MUDARNICK)
        {
            if(!response) return SendClientMessage(playerid,0xC5B43AAA,"Vocк cancelou a troca do nick.");
            if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_MUDARNICK, DIALOG_STYLE_INPUT,"[Nome do server] - Mudanзa de nick","Digite seu novo nick","Trocar","Cancelar");
        new arq[70];
                format(arq,sizeof(arq),"Contas/%s.ini", inputtext);
                if(fexist(arq)) return ShowPlayerDialog(playerid,DIALOG_MUDARNICK,DIALOG_STYLE_INPUT, "[Nome do server] - Mudanзa de nick","ERRO: Esse nick jб existe","Trocar","Cancelar");
                new string[60];
        if(fexist(ReturnFileUser(playerid)))
        {
                        new string2[50];
                        format(string2,sizeof(string2),"Contas/%s.ini", inputtext);
                        DOF2_RenameFile(ReturnFileUser(playerid),string2);
                        DOF2_SaveFile();
                }
                format(string, sizeof(string), "Parabйns! Seu novo nome й {FFFF34}%s", inputtext);
        SendClientMessage(playerid, -1, string);
        SetPlayerName(playerid, inputtext);
        return 1;
    }
    if(dialogid == DIALOG_MUDARSENHA)
    {
        if(!response) return SendClientMessage(playerid,0xC5B43AAA,"Vocк cancelou a troca da senha.");
        if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_MUDARSENHA,DIALOG_STYLE_INPUT,"[Nome do server] - Mudanзa de senha","Digite sua nova senha.","Trocar","Cancelar");
        if(fexist(ReturnFileUser(playerid)))
        {
                        DOF2_SetString(ReturnFileUser(playerid),"Senha",inputtext);
                        DOF2_SaveFile();
                }
                new string[60];
                format(string, sizeof(string), "Parabйns! Sua nova senha й {FFFF34}%s", inputtext);
                SendClientMessage(playerid, -1, string);
        return 1;
    }
й estб dando muitos erro em relaзгo ao "ReturnFileUser" й eu nгo sei qual a funзгo dele...

pawn Код:
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(359) : error 017: undefined symbol "LoadTextDraws"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4683) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4687) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4699) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(4701) : error 017: undefined symbol "ReturnFileUser"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : warning 225: unreachable code
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 017: undefined symbol "cmd_precos"
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(6402) : fatal error 107: too many error messages on one line
o que estб errado ?

@edit

Resolvi

no lugar de "ReturnFileUser" coloquei "Contas" й deu certo <3
Reply


Messages In This Thread
Mudar Nick/Senha - by ModaLOKO - 13.05.2015, 21:32
Re: Mudar Nick/Senha - by Ever_SH - 14.05.2015, 02:15
Re: Mudar Nick/Senha - by ipsLuan - 16.05.2015, 00:38
Re: Mudar Nick/Senha - by ProKillerpa - 16.05.2015, 01:49
Re: Mudar Nick/Senha - by ModaLOKO - 16.05.2015, 13:07
Re: Mudar Nick/Senha - by Bruno_Cyra - 16.05.2015, 15:03
Re: Mudar Nick/Senha - by ModaLOKO - 16.05.2015, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)