Tacho spinnt

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi


    ich habe allen meinen cars einen tank zu gewiessen ein paar waren auf -255 die habe ich hochgesetzt



    new Tank[MAX_VEHICLES];
    new MaxTank[] ={
    120,60,60,220,55,65,180,160,150,120,60,75,60,90,90,65,110,110,90,65,80,75,
    85,75,40,100,90,120,120,55,110,180,200,150,40,110,65,180,90,85,90,110,
    85,165,10,85,100,100,20,100,100,95,100,100,100,120,100,20,65,90,110,
    70,20,70,100,100,70,50,45,100,120,30,100,110,65,55,100,60,50,55,75,100,
    95,120,100,30,100,100,100,140,140,65,75,101,70,90,75,101,110,100,75,100,
    75,75,65,140,75,60,130,110,110,110,110,110,180,180,90,60,50,100,100,
    60,90,100,120,100,85,65,95,75,20,60,240,75,60,65,50,100,100,100,85,70,
    50,55,120,60,60,60,110,50,75,60,80,110,100,60,10,10,65,60,90,90,90,110,
    110,75,60,75,30,110,110,10,15,100,80,60,60,110,80,100,75,50,100,25,110,
    75,45,70,70,65,100,100,110,110,110,110,100,100,100,140,60,120,80,75,50,
    50,-255,-255,-255,120,-255,-255
    };


    So wars früher


    new MaxTank[] ={
    120,60,60,220,55,65,180,160,150,120,60,75,60,90,90,65,110,-255,90,65,80,75,
    85,75,40,-255,90,120,120,55,-255,180,200,150,40,-255,65,180,90,85,90,-255,
    85,165,10,85,-255,-255,20,-255,-255,95,-255,-255,-255,120,100,20,65,90,-255,
    70,20,70,-255,-255,70,50,45,-255,120,30,-255,-255,65,55,-255,60,50,55,75,-255,
    95,120,-255,30,100,-255,-255,140,140,65,75,-255,70,90,75,-255,110,100,75,-255,
    75,75,65,140,75,60,130,-255,-255,-255,-255,-255,180,180,90,60,50,-255,-255,
    60,90,100,120,100,85,65,95,75,20,60,240,75,60,65,50,-255,-255,-255,85,70,
    50,55,120,60,60,60,-255,50,75,60,80,-255,100,60,10,10,65,60,90,90,90,-255,
    -255,75,60,75,30,-255,-255,10,15,100,80,60,60,-255,80,100,75,50,100,25,-255,
    75,45,70,70,65,-255,-255,-255,-255,-255,-255,100,100,100,140,60,120,80,75,50,
    50,-255,-255,-255,120,-255,-255
    };
    };


    und jetzt haben manche autos keinen tacho mehr why

  • Poste mal mehr, das hilft mir ich weiß nicht obs den anderen hilft, aber mir helfen die paar Sachen nicht aus. Poste mal den Tacho stock oder Public und den ganzen Rest den du noch besitzt.

  • forward KmHUpdate(playerid);
    public KmHUpdate(playerid)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    new string[125];
    if(GetVehicleTank(vehicleid) == 0)
    {
    format(string,sizeof string,"~n~~w~KM/h: %i",floatround(GetVehicleSpeed(vehicleid,0)));
    }
    else
    {
    if(Tank[vehicleid] < 10) format(string,sizeof string,"~w~Tank: ~r~%i/%i~n~~w~KM/h: %i",Tank[vehicleid],MaxTank[GetVehicleModel(vehicleid)-400],floatround(GetVehicleSpeed(vehicleid,0)));
    else if(Tank[vehicleid] < 30) format(string,sizeof string,"~w~Tank: ~y~%i/%i~n~~w~KM/h: %i",Tank[vehicleid],MaxTank[GetVehicleModel(vehicleid)-400],floatround(GetVehicleSpeed(vehicleid,0)));
    else if(Tank[vehicleid] <= 100) format(string,sizeof string,"~w~Tank: ~g~%i/%i~n~~w~KM/h: %i",Tank[vehicleid],MaxTank[GetVehicleModel(vehicleid)-400],floatround(GetVehicleSpeed(vehicleid,0)));
    }
    TextDrawSetString(Anzeige[playerid],string);
    return 1;
    }

  • Eine Frage wieos lässte das Anzeigen, mit -400?
    MaxTank[GetVehicleModel(vehicleid)-400