[Ajuda] Problema com Sistema de Registro
#2

Tenta assim

pawn Код:
public OnPlayerRegister(playerid, password[])
{
    if(IsPlayerConnected(playerid))
    {
            new string3[64];
            new playername3[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername3, sizeof(playername3));
            format(string3, sizeof(string3), "Contas/%s.ini", playername3);
            new File: hFile = fopen(string3, io_write);
            if (hFile)
            {
                strmid(PlayerInfo[playerid][pSenha], password, 0, strlen(password), 255);
                new var[32];

                format(var, 32, "Senha=%s\n", PlayerInfo[playerid][pSenha]);fwrite(hFile, var);
                format(var, 32, "Dinheiro=0\n",fwrite(hFile, var);
                format(var, 32, "Score=0\n",fwrite(hFile, var);
                format(var, 32, "Admin=0\n",fwrite(hFile, var);
                fclose(hFile);
            }
            SendClientMessage(playerid, 0x33FF00FF, "Vocк agora pode digitar /logar <senha>");
            ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD,""BRANCO"Logar",""BRANCO"Digite sua senha abaixo para efetuar login.","Logar","Quit");
    }
    return 1;
}
Reply


Messages In This Thread
Problema com Sistema de Registro - by LordShadow - 22.08.2013, 11:15
Respuesta: Problema com Sistema de Registro - by ViniKuliveguisky - 22.08.2013, 20:06
Re: Problema com Sistema de Registro - by PT - 23.08.2013, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)