17.01.2014, 00:55
Hi, I've been trying to make a label for my Progress Bars through TextDraw but for some reason it doesn't appear. I get the X and Y coordinates of the bar and increment X by 2 points. Here is my code.
Any required code will be provided. Please help ASAP.
pawn Код:
//NEWs
new Text:thirsttext;
thirsttext = TextDrawCreate(539.00, 134.00,"Thirst: ");
ThirstBar[i] = CreateProgressBar(549.00, 134.00,55.50, 3.20, 1490286591, 100.0);
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,thirsttext);
ShowProgressBarForPlayer(playerid,ThirstBar[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,thirsttext);
ShowProgressBarForPlayer(playerid,ThirstBar[playerid]);
return 1;
}