pawn Code:
public SalvarUsuario(playerid)
{
if(Logado[playerid] == true){
new conta[256], banco[256];
new Float:x, Float:y, Float:z, Float:a;
format(conta, sizeof(conta), DIRETORIO, nome(playerid));
format(banco, sizeof(banco), BANCO, nome(playerid));
if(SkinComprada[playerid] == true){
DOF2_SetInt(conta, "Skin", GetPlayerSkin(playerid));}
DOF2_SetInt(conta, "Procurado", GetPlayerWantedLevel(playerid));
DOF2_SetInt(conta, "Level", Level[playerid]);
DOF2_SetInt(conta, "Experiencia", Experiencia[playerid]);
DOF2_SetInt(conta, "Gasolina", Gasolina[playerid]);
DOF2_SetInt(conta, "Galao", GalaoCombustivel[playerid]);
DOF2_SetInt(conta, "Profissao", Profissao[playerid]);
DOF2_SetInt(conta, "Dinheiro", GetPlayerMoneyEx(playerid));
DOF2_SetInt(conta, "Terrestre", Habilitacoes[playerid][HAB_TERRESTRE]);
DOF2_SetInt(conta, "Aerea", Habilitacoes[playerid][HAB_AEREA]);
DOF2_SetInt(conta, "Nautica", Habilitacoes[playerid][HAB_NAUTICA]);
DOF2_SetBool(conta, "Porte", Habilitacoes[playerid][HAB_PORTE]);
DOF2_SetInt(conta, "Aulas", Aulas[playerid]);
DOF2_SetInt(conta, "Lutas", GetPlayerFightingStyle(playerid));
GetPlayerFacingAngle(playerid, a);
GetPlayerPos(playerid, x, y, z);
DOF2_SetFloat(conta, "X", x);
DOF2_SetFloat(conta, "Y", y);
DOF2_SetFloat(conta, "Z", z);
DOF2_SetFloat(conta, "A", a);
DOF2_SetBool(conta, "Preso", Preso[playerid]);
DOF2_SetInt(conta, "ConvenioMedico", ConvenioMedico[playerid]);
DOF2_SetInt(conta, "Interior", GetPlayerInterior(playerid));
DOF2_SetInt(conta, "Pescas", QtPescas[playerid]);
DOF2_SetInt(conta, "Cacas", QtCacas[playerid]);
DOF2_SetFloat(conta, "Interior", GetPlayerInterior(playerid));
DOF2_SaveFile();}
return 1;
}