[Ajuda] DOF2_GetString!
#1

Olб!

Tenho um problema na hora de salvar, queria salvar o email do player... Mas quando vou salvar fica, Email = Um Sнmbolo .. Queria Salvar O Que Ele Digitou No Caso O E-mail ..


pawn Код:
LoadPlayer(playerid)
{
    if( DOF2_FileExists( GetPlayerArquivo( playerid ) ) )
    {
        Player[ playerid ][ Matou ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Matou" );
        Player[ playerid ][ Morreu ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Morreu" );
        Player[ playerid ][ Score ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Score" );
        Player[ playerid ][ Dinheiro ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Dinheiro" );
        Player[ playerid ][ ColorPlayer ] = DOF2_GetHex( GetPlayerArquivo( playerid ), "CorNick" );
        Player[ playerid ][ Admin ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Admin"  );
        Player[ playerid ][ VIP ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "VIP"  );
        //Player[ playerid ][ Email ] = DOF2_GetString( GetPlayerArquivo( playerid ), "Email"  ); //Erro Tambйm
        Player[ playerid ][ Language ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Language"  );
        Player[ playerid ][ Registrado ] = DOF2_GetInt( GetPlayerArquivo( playerid ), "Registrado" );

        SetPlayerScore( playerid, Player[ playerid ][ Score ] );
        SetPlayerColor( playerid, Player[ playerid ][ ColorPlayer ] );
        GivePlayerMoney( playerid, Player[ playerid] [ Dinheiro ] );

    }
    return 1;
}
pawn Код:
SavePlayer(playerid)
{
    if( DOF2_FileExists( GetPlayerArquivo( playerid ) ) )
    {

        DOF2_CreateFile(GetPlayerArquivo(playerid));

        DOF2_SetInt( GetPlayerArquivo( playerid ), "Matou", Player[ playerid ][ Matou ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Morreu", Player[ playerid ][ Morreu ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Score", Player[ playerid ][ Score ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Dinheiro", GetPlayerMoney( playerid ));
        DOF2_SetHex( GetPlayerArquivo( playerid ), "CorNick", Player[ playerid ][ ColorPlayer ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Admin", Player[ playerid ][ Admin ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "VIP", Player[ playerid ][ VIP ] );
        DOF2_SetString( GetPlayerArquivo( playerid ), "Email", Player[ playerid ] [ Email ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Language", Player[ playerid ][ Language ] );
        DOF2_SetInt( GetPlayerArquivo( playerid ), "Registrado", Player[ playerid ][ Registrado ] );
       
        DOF2_SaveFile();

    }
    return 1;
}
OnDialogResponse:
pawn Код:
Player[ playerid ][ Email ] = strlen( inputtext );
Registro:
pawn Код:
DOF2_SetString( GetPlayerArquivo( playerid ), "Email", Player[ playerid ] [ Email ] );
Reply


Messages In This Thread
DOF2_GetString! - by SkyneTSAMP - 20.03.2016, 14:31
Re: DOF2_GetString! - by Whoo - 20.03.2016, 14:48
Re: DOF2_GetString! - by SkyneTSAMP - 20.03.2016, 14:58
Re: DOF2_GetString! - by F1N4L - 20.03.2016, 15:00
Re: DOF2_GetString! - by SkyneTSAMP - 20.03.2016, 15:02
Re: DOF2_GetString! - by F1N4L - 20.03.2016, 15:04
Re: DOF2_GetString! - by Whoo - 20.03.2016, 15:09
Re: DOF2_GetString! - by F1N4L - 20.03.2016, 15:14
Re: DOF2_GetString! - by SkyneTSAMP - 20.03.2016, 15:15
Re: DOF2_GetString! - by F1N4L - 20.03.2016, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)