[Ajuda] Experiencia nгo mostra.
#1

Estou adcionando um sistema de UP no meu GM, nгo й um GM baixado, й feito com o new.pwn.

O erro й o seguinte, no comando /meulevel, ele nгo mostra a experiencia que o jogador estб..

o Level mostra corretamente, mas a exp nгo.

E quando o jogador sai do server ele reseta a exp para 0.

Cуdigos:

pawn Код:
stock SavePlayerInfo(playerid)
{
    new s[36];
    format(s, sizeof(s), "Contas/%s.ini", pNick(playerid));

    dini_IntSet(s, "Dinheiro", GetPlayerMoney(playerid));
    dini_IntSet(s, "LeveldeProcurado", GetPlayerWantedLevel(playerid));
    dini_IntSet(s, "SkinAtual", GetPlayerSkin(playerid));
    dini_IntSet(s, "Profissao", Profissao[playerid]);
    dini_IntSet(s, "Level", pLevel[playerid]);
    dini_IntSet(s, "ExpJogador", Experiencia[playerid]);
    return 1;
}

stock LoadPlayerInfo(playerid)
{
    new s[36];
    format(s, sizeof(s), "Contas/%s.ini", pNick(playerid));

    SetPlayerWantedLevel(playerid, dini_Int(s, "LeveldeProcurado"));
    GivePlayerMoney(playerid, dini_Int(s, "Dinheiro"));
    SetPlayerSkin(playerid, dini_Int(s, "SkinAtual"));
    Profissao[playerid] = dini_Int(s, "Profissao");
    pLevel[playerid] = dini_Int(s, "Level");
    SetPlayerScore(playerid, dini_Int(s, "Level"));
    Experiencia[playerid] = dini_Int(s, "Experiencia");
    return 1;
}
pawn Код:
CMD:meulevel(playerid)
{
    new strc[128];

    SendClientMessage(playerid, -1, "{8080FF}~~~~~~~~~~~~~~~~~~~~~~~~ Level {8080FF} ~~~~~~~~~~~~~~~~~~~~~~~~");
   
    format(strc, sizeof(strc), "   * Level: %d", pLevel[playerid]);
    SendClientMessage(playerid, 0xFFFFFFFF, strc);
   
    format(strc, sizeof(strc), "   * Experiencia: (%d/5)", Experiencia[playerid]);
    SendClientMessage(playerid, 0xFFFFFFFF, strc);

//  format(strc, sizeof(strc), "* Faltam %d minuto(s) restantes para proxima Exp!!", TLM);
//  SendClientMessage(playerid, 0xFFFFFFFF, strc);

    SendClientMessage(playerid, -1, "{8080FF}~~~~~~~~~~~~~~~~~~~~~~~~ Level {8080FF} ~~~~~~~~~~~~~~~~~~~~~~~~");

    PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
    return 1;
}
Reply


Messages In This Thread
Experiencia nгo mostra. - by yMbR - 02.08.2012, 21:14
Re: Experiencia nгo mostra. - by paulor - 02.08.2012, 21:17
Re: Experiencia nгo mostra. - by yMbR - 02.08.2012, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)