20.03.2016, 14:31
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 ..
OnDialogResponse:
Registro:
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;
}
pawn Код:
Player[ playerid ][ Email ] = strlen( inputtext );
pawn Код:
DOF2_SetString( GetPlayerArquivo( playerid ), "Email", Player[ playerid ] [ Email ] );