Hallo
Ich wollte zu mein Tacho system eine anzeige machen da wo es je nach tank stand die farbe ändert.
Ich habe es so versucht aber bis lang passiert nix er bleibt immer Grün
tankBlink[i] = TextDrawCreate(170.000000, 396.000000, " ");
TextDrawBackgroundColor(tankBlink[i], 16711935);
TextDrawFont(tankBlink[i], 1);
TextDrawLetterSize(tankBlink[i], 0.500000, 1.000000);
TextDrawColor(tankBlink[i], -1);
TextDrawSetOutline(tankBlink[i], 0);
TextDrawSetProportional(tankBlink[i], 1);
TextDrawSetShadow(tankBlink[i], 1);
TextDrawUseBox(tankBlink[i], 1);
TextDrawBoxColor(tankBlink[i], 16711935);
TextDrawTextSize(tankBlink[i], 194.000000, 100.000000);
Unter Timer2
SetTimer("Timer2",1000, 1);
new Bla = Gas[vehicleid]/GetGasMax(GetVehicleModel(vehicleid))*100;
if(Bla >= 60)
{
TextDrawBackgroundColor(tankBlink[i], 0x9EC73DAA);
TextDrawHideForPlayer(i,tankBlink[i]);
TextDrawShowForPlayer(i, tankBlink[i]);
}
else if(Bla >= 20)
{
TextDrawBackgroundColor(tankBlink[i], 0xFF9900AA);
TextDrawHideForPlayer(i,tankBlink[i]);
TextDrawShowForPlayer(i, tankBlink[i]);
}
else
{
TextDrawBackgroundColor(tankBlink[i], 0xAA3333AA);
TextDrawHideForPlayer(i,tankBlink[i]);
TextDrawShowForPlayer(i, tankBlink[i]);
}
es sollte so aussehen