SA-MP Forums Archive
[Ajuda] Textdraw - 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] Textdraw (/showthread.php?tid=636996)



Textdraw - TheCrazyy - 06.07.2017

Galera desculpa estar aqui novamente, mais meu problema й o seguinte, eu tenho um sistema de gasolina em textdraw ai ele tem um soma muito louca la que abaixa o combustivel(diminue o Txd da gasolina) , sу que quando ele fica em 0,
em vez dele parar ele continua , ai vai aumentando o Txd para -1, -2, -3, e o txd vai ficando mais grande para o outro lado.
Queria saber se tem como fazer uma verificaзгo para o txd parar de descer , sу ficar no 0.


Re: Textdraw - JeffSantos2 - 06.07.2017

if(gasolina > 0) gasolina = gasolina - 1;


Re: Textdraw - TheCrazyy - 06.07.2017

onde coloco isso?


Re: Textdraw - OtimoJogo - 06.07.2017

No mesmo local onde estб os TextDraw diminuнdo "-1 -2 -3..."


Re: Textdraw - TheCrazyy - 06.07.2017

Quote:
Originally Posted by OtimoJogo
Посмотреть сообщение
No mesmo local onde estб os TextDraw diminuнdo "-1 -2 -3..."
onde ela diminui ta

Код:
            switch(fuel[GetPlayerVehicleID(i)]);
			{
                case 94 .. 100: PlayerTextDrawTextSize(i, v_progress_cinza_gas[i], (507.00 + ((97.0 * 100) / 100 -5.5)), 0.0);
                default: PlayerTextDrawTextSize(i, v_progress_cinza_gas[i], (507.00 + ((97.0 * fuel[GetPlayerVehicleID(i)]) / 100 )), 0.0);
			}
como coloco ele ai ?


Re: Textdraw - ViniBorn - 07.07.2017

PHP код:
if(fuel[GetPlayerVehicleID(i)] < 1) continue;

switch(
fuel[GetPlayerVehicleID(i)])
{
    case 
94 .. 100PlayerTextDrawTextSize(iv_progress_cinza_gas[i], (507.00 + ((97.0 100) / 100 -5.5)), 0.0);
    default: 
PlayerTextDrawTextSize(iv_progress_cinza_gas[i], (507.00 + ((97.0 fuel[GetPlayerVehicleID(i)]) / 100 )), 0.0);