[Ajuda] Nгo salva a skin
#10

Quote:
Originally Posted by -******-
Посмотреть сообщение
Entгo mude novamente a skin em scriptfiles e use como base o meu cуdigo,vai da certo.

Edit:Esqueci de um detalhe importante que o schoc citou.

pawn Код:
public OnPlayerSpawn(playerid){
new arq[40],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(arq, sizeof(arq), arquivo, pName(playerid));
SetPlayerSkin(playerid,DOF2_GetInt(arq,"Skin"));
return 1;
}
Cуdigo corrigido.
Seu cуdigo,e a mesma coisa que isso:
pawn Код:
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;
}

stock GetarConta(playerid)
{
    new arq[40];
    format(arq, sizeof(arq), arquivo, pName(playerid));
    return arq;
}
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: 1 Guest(s)