[Ajuda] Bug em Box/ProgressBar
#1

Sempre que eu coloco pra exibir as textdraw e as barras, a textdraw fica por cima da barra, indepedente da ordem

cуdigo das Textdraw

pawn Код:
_text3[playerid] = CreatePlayerTextDraw(playerid,610.000000, 142.000000, "~n~");
    PlayerTextDrawBackgroundColor(playerid,_text3[playerid], 255);
    PlayerTextDrawFont(playerid,_text3[playerid], 1);
    PlayerTextDrawLetterSize(playerid,_text3[playerid], 0.500000, 0.399999);
    PlayerTextDrawColor(playerid,_text3[playerid], -1);
    PlayerTextDrawSetOutline(playerid,_text3[playerid], 0);
    PlayerTextDrawSetProportional(playerid,_text3[playerid], 1);
    PlayerTextDrawSetShadow(playerid,_text3[playerid], 1);
    PlayerTextDrawUseBox(playerid,_text3[playerid], 1);
    PlayerTextDrawBoxColor(playerid,_text3[playerid], 0x00000050);
    PlayerTextDrawTextSize(playerid,_text3[playerid], 491.000000, -2.000000);
    PlayerTextDrawSetSelectable(playerid,_text3[playerid], 0);

    _text4[playerid] = CreatePlayerTextDraw(playerid,610.000000, 129.000000, "~n~");
    PlayerTextDrawBackgroundColor(playerid,_text4[playerid], 255);
    PlayerTextDrawFont(playerid,_text4[playerid], 1);
    PlayerTextDrawLetterSize(playerid,_text4[playerid], 0.500000, 0.399999);
    PlayerTextDrawColor(playerid,_text4[playerid], -1);
    PlayerTextDrawSetOutline(playerid,_text4[playerid], 0);
    PlayerTextDrawSetProportional(playerid,_text4[playerid], 1);
    PlayerTextDrawSetShadow(playerid,_text4[playerid], 1);
    PlayerTextDrawUseBox(playerid,_text4[playerid], 1);
    PlayerTextDrawBoxColor(playerid,_text4[playerid], 0x00000050);
    PlayerTextDrawTextSize(playerid,_text4[playerid], 491.000000, -2.000000);
    PlayerTextDrawSetSelectable(playerid,_text4[playerid], 0);

    _text1[playerid] = CreatePlayerTextDraw(playerid,500.000000, 126.000000, "Fome:");
    PlayerTextDrawBackgroundColor(playerid,_text1[playerid], 255);
    PlayerTextDrawFont(playerid,_text1[playerid], 2);
    PlayerTextDrawLetterSize(playerid,_text1[playerid], 0.239999, 0.899999);
    PlayerTextDrawColor(playerid,_text1[playerid], -1);
    PlayerTextDrawSetOutline(playerid,_text1[playerid], 0);
    PlayerTextDrawSetProportional(playerid,_text1[playerid], 0);
    PlayerTextDrawSetShadow(playerid,_text1[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,_text1[playerid], 0);

    _text2[playerid] = CreatePlayerTextDraw(playerid,500.000000, 138.000000, "sede:");
    PlayerTextDrawBackgroundColor(playerid,_text2[playerid], 255);
    PlayerTextDrawFont(playerid,_text2[playerid], 2);
    PlayerTextDrawLetterSize(playerid,_text2[playerid], 0.239999, 0.899999);
    PlayerTextDrawColor(playerid,_text2[playerid], -1);
    PlayerTextDrawSetOutline(playerid,_text2[playerid], 0);
    PlayerTextDrawSetProportional(playerid,_text2[playerid], 0);
    PlayerTextDrawSetShadow(playerid,_text2[playerid], 1);
    PlayerTextDrawSetSelectable(playerid,_text2[playerid], 0);

            // Barra Fome
    pFome[playerid] = CreateProgressBar(540.00, 130.00, 52.50, 0.30,  0xffdd00AA, 100.0);
    pSede[playerid] = CreateProgressBar(540.00, 142.00, 52.50, 0.40,  0x00a9ffAA, 100.0);
Forma que eu uso


pawn Код:
PlayerTextDrawShow(playerid, _text3[playerid]);
        PlayerTextDrawShow(playerid, _text4[playerid]);
        PlayerTextDrawShow(playerid, _text1[playerid]);
        PlayerTextDrawShow(playerid, _text2[playerid]);
               

        ShowProgressBarForPlayer(playerid, pFome[playerid]);
        SetProgressBarValue(pFome[playerid], dini_Int(file, "Fome"));
        UpdateProgressBar(pFome[playerid], playerid);

        ShowProgressBarForPlayer(playerid, pSede[playerid]);
        SetProgressBarValue(pSede[playerid], dini_Int(file, "Sede"));
        UpdateProgressBar(pSede[playerid], playerid);
porem o servidor nгo obedece a essa ordem, a progress й exibida antes que a box
Reply


Messages In This Thread
Bug em Box/ProgressBar - by AdesxXx - 13.12.2017, 16:12
Re: Bug em Box/ProgressBar - by Pool - 13.12.2017, 16:20
Re: Bug em Box/ProgressBar - by Eddye - 13.12.2017, 17:26
Re: Bug em Box/ProgressBar - by MediaCL - 14.12.2017, 01:08

Forum Jump:


Users browsing this thread: 2 Guest(s)