SA-MP Forums Archive
[ajuda]Km Informaзгo do carro parou de aparecer - 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]Km Informaзгo do carro parou de aparecer (/showthread.php?tid=165701)



[ajuda] - Gabriel_Halls - 05.08.2010

bom como o titulo dis as informaзгo que aparece em baixo da tela centralizado aparece o nome do carro
a lataria combustivel e a velocidade do carro aki no meu gm derepente parou de aparecer e nгo eh lag ja dei gmx ja modifiquei e nada nem o URL que da pra coloca em baixo nгo aparece gostaria de sabe oq aconteceu isso ?


Re: [ajuda]Km Informaзгo do carro parou de aparecer - sergio_xd - 05.08.2010

posta o codigo?


Re: [ajuda]Km Informaзгo do carro parou de aparecer - Gabriel_Halls - 06.08.2010

Ai estб axo q e isso que fas mostrar.
pawn Код:
new kmh_anzahl = floatround(value/1600);

            format(str1,sizeof(str1),"Veiculo: ~p~%s",vehName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
            TextDrawSetString(fahrzeug[i], str1);

            if(kmh_anzahl >= 150)
            {
                format(str2,sizeof(str2),"KM/H: ~r~%d",kmh_anzahl);
                TextDrawSetString(kmh[i], str2);
            }
            else if(kmh_anzahl >= 100)
            {
                format(str2,sizeof(str2),"KM/H: ~p~%d",kmh_anzahl);
                TextDrawSetString(kmh[i], str2);
            }
            else if(kmh_anzahl >= 50)
            {
                format(str2,sizeof(str2),"KM/H: ~p~%d",kmh_anzahl);
                TextDrawSetString(kmh[i], str2);
            }
            else
            {
                format(str2,sizeof(str2),"KM/H: ~p~%d",kmh_anzahl);
                TextDrawSetString(kmh[i], str2);
            }

            format(str3,sizeof(str3),"Combustivel: ~p~%d%", Gas[vehicle]);
            TextDrawSetString(hoehe[i], str3);

            if(Speedo_HP >= 551)
            {
                format(str4,sizeof(str4),"Lataria: ~p~%0.0f%%", Speedo_HP/10);
                TextDrawSetString(zustand[i], str4);
            }
            else if(Speedo_HP >= 361)
            {
                format(str4,sizeof(str4),"Lataria: ~p~%0.0f%%", Speedo_HP/10);
                TextDrawSetString(zustand[i], str4);
            }
            else
            {
                format(str4,sizeof(str4),"Lataria: ~p~%0.0f%%", Speedo_HP/10);
                TextDrawSetString(zustand[i], str4);
            }