[Ajuda] TextDrawDestroy. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDrawDestroy. (
/showthread.php?tid=646132)
TextDrawDestroy. -
SeckSeck - 11.12.2017
Код:
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...
Re: TextDrawDestroy. - Whoo - 11.12.2017
Nгo aparece porque vocк deletou a texdraw, em vez de utilizar TextDrawDestroy utilize TextDrawHideForPlayer.
Re: TextDrawDestroy. -
SeckSeck - 11.12.2017
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..
Re: TextDrawDestroy. -
Marllun - 11.12.2017
PHP код:
if(Progress == 100.0)
{
TextDrawHideForPlayer(playerid, BarProgress[2]);
}
Ou
PHP код:
TextDrawHideForPlayer(playerid, BarProgress[2]);
Re: TextDrawDestroy. -
SeckSeck - 11.12.2017
Quote:
Originally Posted by Marllun
PHP код:
if(Progress == 100.0)
{
TextDrawHideForPlayer(playerid, BarProgress[2]);
}
Ou
PHP код:
TextDrawHideForPlayer(playerid, BarProgress[2]);
|
ela continua crescendo mano...
Re: TextDrawDestroy. - Whoo - 11.12.2017
Vocк tem que voltar a texdraw para o tamanho inicial.
TextDrawTextSize