[Ajuda] probleminha com textdraw de level
#2

pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
    Textdraw0[playerid] = TextDrawCreate(500.000000, 100.000000, "Level:");
    TextDrawBackgroundColor(Textdraw0[playerid], -1);
    TextDrawFont(Textdraw0[playerid], 3);
    TextDrawLetterSize(Textdraw0[playerid], 0.460000, 1.100000);
    TextDrawColor(Textdraw0[playerid], 255);
    TextDrawSetOutline(Textdraw0[playerid], 1);
    TextDrawSetProportional(Textdraw0[playerid], 1);
    {
        SetTimerEx("AtualizarLevel", 1000, true, "i", playerid);
    }
pawn Код:
public AtualizarLevel(playerid)
{
    new teste[128];
    format(teste, sizeof(teste), "Level: %d", GetPlayerLevel1(playerid));
    TextDrawSetString(Textdraw0[playerid], teste);
    return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)