Ich kriege kein Error oder Warning, es wird nur nicht der Tank angezeigt. Habe ShowTextDrawForPlayer(i, 4); im tacho drinn
new tstring[128];
if(Tank[VehicleID] > 90 && Tank[VehicleID] < 100)
{
format(tstring, 128, "~g~IIIIIIIIII");
}
else if(Tank[VehicleID] > 80 && Tank[VehicleID] < 90)
{
format(tstring, 128, "~g~IIIIIIIII");
}
else if(Tank[VehicleID] > 70 && Tank[VehicleID] < 80)
{
format(tstring, 128, "~g~IIIIIIII");
}
else if(Tank[VehicleID] > 60 && Tank[VehicleID] < 70)
{
format(tstring, 128, "~g~IIIIIII");
}
else if(Tank[VehicleID] > 50 && Tank[VehicleID] < 60)
{
format(tstring, 128, "~g~IIIIII");
}
else if(Tank[VehicleID] > 40 && Tank[VehicleID] < 50)
{
format(tstring, 128, "~y~IIIII");
}
else if(Tank[VehicleID] > 30 && Tank[VehicleID] < 40)
{
format(tstring, 128, "~y~IIII");
}
else if(Tank[VehicleID] > 20 && Tank[VehicleID] < 30)
{
format(tstring, 128, "~y~III");
}
else if(Tank[VehicleID] > 10 && Tank[VehicleID] < 20)
{
format(tstring, 128, "~r~II");
}
else if(Tank[VehicleID] > 1 && Tank[VehicleID] < 10)
{
format(tstring, 128, "~r~I");
}
else if(Tank[VehicleID] <= 0)
{
format(tstring, 128, "~r~Tank alle"); //Wird nur Angezeigt ?????
}
TextDrawSetString(Textdraw4[i], tstring);