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



Tranformar em txdraw. - seven7een - 08.04.2013

Alguem me pode ajudar a transformar isto num txdraw ?

pawn Код:
if(ShowFuel[i] && GetPlayerState(i) == PLAYER_STATE_DRIVER)
                {
                    new form[128];
                    new vehicle = GetPlayerVehicleID(i);
                    if(!OutOfFuel[i])
                    {
                        if(Fuel[vehicle] <= 25)
                        {
                            if(EngineStatus[vehicle])
                            {
                                format(form, sizeof(form), "~w~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Gasolina:~g~ %d%~n~~r~deposito na reserva.~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
                                GameTextForPlayer(i,form,1000,5);
                            }
                            else
                            {
                                format(form, sizeof(form), "~w~~n~~n~~n~~n~~y~Motor desligado.~n~~w~Gasolina:~g~ %d%~n~~r~deposito na reserva.~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
                                GameTextForPlayer(i,form,1000,5);
                            }
                        }
                        else
                        {
                            if(EngineStatus[vehicle])
                            {
                                format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Gasolina:~g~ %d%~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
                                GameTextForPlayer(i,form,1000,5);
                            }
                            else
                            {
                                format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~y~Motor desligado.~n~~w~Gasolina:~g~ %d%~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
                                GameTextForPlayer(i,form,1000,5);
                            }
                        }
                    }
                }



Re: Tranformar em txdraw. - LuxuN - 08.04.2013

https://sampwiki.blast.hk/wiki/TextDrawCreate
https://sampwiki.blast.hk/wiki/TextDrawSetString

prontinho.


Re: Tranformar em txdraw. - seven7een - 08.04.2013

pawn Код:
new text:newmotor[17];
new text:newgasolina[9];
new text:newkm[5];

public OnGameModeInit()
{
    newmotor = TextDrawCreate(1.0, 5.6, " ");
    newgasolina = TextDrawCreate(1.0, 5.6, " ");
    newkm = TextDrawCreate(1.0, 5.6, " ");
    return 1;
}
Omg, nгo percebo nada de nada .... explica me por favor. nao quero que faзas sem me explicares.