[Ajuda] Nгo salva a skin
#1

Fiz isso pra salvar a skin ( e o resto das coisas..)

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;
}
Feito,maravilha,salva tudo uma perfeiзгo,menos a skin.
Sempre volta a 0.
Reply


Messages In This Thread
Nгo salva a skin - by vitorvlv - 31.05.2013, 03:30
Respuesta: Nгo salva a skin - by Parka - 31.05.2013, 03:34
Re: Nгo salva a skin - by vitorvlv - 31.05.2013, 03:35
Re: Nгo salva a skin - by vitorvlv - 31.05.2013, 16:46
Re: Nгo salva a skin - by -GooGle- - 31.05.2013, 16:54
Re: Nгo salva a skin - by vitorvlv - 31.05.2013, 17:11
Re: Nгo salva a skin - by -GooGle- - 31.05.2013, 17:15
Re: Nгo salva a skin - by vitorvlv - 31.05.2013, 17:16
Re: Nгo salva a skin - by -GooGle- - 31.05.2013, 17:18
Re: Nгo salva a skin - by vitorvlv - 31.05.2013, 17:33

Forum Jump:


Users browsing this thread: 2 Guest(s)