13.12.2017, 16:12
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
Forma que eu uso
porem o servidor nгo obedece a essa ordem, a progress й exibida antes que a box
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);
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);