31.05.2013, 03:30
Fiz isso pra salvar a skin ( e o resto das coisas..)
Feito,maravilha,salva tudo uma perfeiзгo,menos a skin.
Sempre volta a 0.
pawn Код:
stock SalvarConta(playerid)
{
DOF2_SetInt(GetarConta(playerid), "AdmLevel", pDados[playerid][Admin]);
DOF2_SetInt(GetarConta(playerid), "Score", GetPlayerScore(playerid));
DOF2_SetInt(GetarConta(playerid), "Skin", GetPlayerSkin(playerid));
DOF2_SetInt(GetarConta(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2_SetBool(GetarConta(playerid), "Cadastro", pDados[playerid][Cadastrado]);
DOF2_SaveFile();
return 1;
}
stock CarregarConta(playerid)
{
pDados[playerid][Admin] = DOF2_GetInt(GetarConta(playerid), "AdmLevel");
SetPlayerScore(playerid, DOF2_GetInt(GetarConta(playerid), "Score"));
GivePlayerMoney(playerid, DOF2_GetInt(GetarConta(playerid), "Dinheiro"));
SetPlayerSkin(playerid,DOF2_GetInt(GetarConta(playerid),"Skin"));
return 1;
}
Sempre volta a 0.