11.12.2017, 00:33
Код:
TextDrawTextSize(BarProgress[2], (40.0 + ((98.0 * ++Progress) / 100)), -11.0); TextDrawShowForPlayer(playerid, BarProgress[2]); if(Progress < 100.0) SetTimerEx("ProgressBar", 300, false, "i", playerid);
TextDrawTextSize(BarProgress[2], (40.0 + ((98.0 * ++Progress) / 100)), -11.0); TextDrawShowForPlayer(playerid, BarProgress[2]); if(Progress < 100.0) SetTimerEx("ProgressBar", 300, false, "i", playerid);
Nгo aparece porque vocк deletou a texdraw, em vez de utilizar TextDrawDestroy utilize TextDrawHideForPlayer.
|
TextDrawTextSize(BarProgress[2], (40.0 + ((98.0 * ++Progress) / 100)), -11.0); TextDrawShowForPlayer(playerid, BarProgress[2]); if(Progress < 100.0) SetTimerEx("ProgressBar", 300, false, "i", playerid);
if(Progress == 100.0)
{
TextDrawHideForPlayer(playerid, BarProgress[2]);
}
TextDrawHideForPlayer(playerid, BarProgress[2]);