[Ajuda] TextDrawDestroy.
#1

Код:
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);
Coloquei pra quando sair do check point ou conseguir dominar uma favela destruir essa barra de progresso, porem quando vai dominar outra favela ou se saiu do check point, quando volta pra tentar dominar novante a barra de progresso nгo aparece novamente...
Reply
#2

Nгo aparece porque vocк deletou a texdraw, em vez de utilizar TextDrawDestroy utilize TextDrawHideForPlayer.
Reply
#3

Quote:
Originally Posted by Whoo
Посмотреть сообщение
Nгo aparece porque vocк deletou a texdraw, em vez de utilizar TextDrawDestroy utilize TextDrawHideForPlayer.
Pronto mano, porem a textdraw que vai aumentando continua aparecendo...
Код:
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);
essa aqui continua aparecendo..
Reply
#4

PHP код:
if(Progress == 100.0)
{
TextDrawHideForPlayer(playerid,  BarProgress[2]);

Ou

PHP код:
TextDrawHideForPlayer(playerid,  BarProgress[2]); 
Reply
#5

Quote:
Originally Posted by Marllun
Посмотреть сообщение
PHP код:
if(Progress == 100.0)
{
TextDrawHideForPlayer(playerid,  BarProgress[2]);

Ou

PHP код:
TextDrawHideForPlayer(playerid,  BarProgress[2]); 
ela continua crescendo mano...
Reply
#6

Vocк tem que voltar a texdraw para o tamanho inicial.

TextDrawTextSize
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)