Tacho bug

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
  • Zeig mal bitte den code zum Tacho
    Villt hast du im Im falschen Public Gepostet Oder so.


    MFG
    Justkillyou

  • den code zum tacho meinste alles ? i



    hier bei onplayerconnect.



    Speedo4[playerid] = TextDrawCreate(152.000000, 379.000000, "");
    TextDrawBackgroundColor(Speedo4[playerid], 255);
    TextDrawFont(Speedo4[playerid], 1);
    TextDrawLetterSize(Speedo4[playerid], 0.230000, 1.000000);
    TextDrawColor(Speedo4[playerid], 522539007);
    TextDrawSetOutline(Speedo4[playerid], 1);
    TextDrawSetProportional(Speedo4[playerid], 1);


    Speedo5[playerid] = TextDrawCreate(152.000000, 393.000000, "100 km/h");
    TextDrawBackgroundColor(Speedo5[playerid], 255);
    TextDrawFont(Speedo5[playerid], 1);
    TextDrawLetterSize(Speedo5[playerid], 0.230000, 1.000000);
    TextDrawColor(Speedo5[playerid], -1);
    TextDrawSetOutline(Speedo5[playerid], 1);
    TextDrawSetProportional(Speedo5[playerid], 1);


    Speedo6[playerid] = TextDrawCreate(176.000000, 352.000000, "1000/1000");
    TextDrawBackgroundColor(Speedo6[playerid], 255);
    TextDrawFont(Speedo6[playerid], 1);
    TextDrawLetterSize(Speedo6[playerid], 0.230000, 1.000000);
    TextDrawColor(Speedo6[playerid], -1);
    TextDrawSetOutline(Speedo6[playerid], 1);
    TextDrawSetProportional(Speedo6[playerid], 1);


    Speedo7[playerid] = TextDrawCreate(190.000000, 366.000000, "100%");
    TextDrawBackgroundColor(Speedo7[playerid], 255);
    TextDrawFont(Speedo7[playerid], 1);
    TextDrawLetterSize(Speedo7[playerid], 0.230000, 1.000000);
    TextDrawColor(Speedo7[playerid], -1);
    TextDrawSetOutline(Speedo7[playerid], 1);
    TextDrawSetProportional(Speedo7[playerid], 1);


    TextDrawHideForPlayer(playerid, Speedo0);
    TextDrawHideForPlayer(playerid, Speedo1);
    TextDrawHideForPlayer(playerid, Speedo2);
    TextDrawHideForPlayer(playerid, Speedo3);
    TextDrawHideForPlayer(playerid, Speedo4[playerid]);
    TextDrawHideForPlayer(playerid, Speedo5[playerid]);
    TextDrawHideForPlayer(playerid, Speedo6[playerid]);
    TextDrawHideForPlayer(playerid, Speedo7[playerid]);
    TextDrawHideForPlayer(playerid, Speedo8);

  • Nimms bei OnPlayerConnect raus und fügs mal hier ein.
    Bin nicht sicher obs geht aber sollte.



    public OnPlayerStateChange(playerid, newstate, oldstate){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { Speedo4[playerid] = TextDrawCreate(152.000000, 379.000000, ""); TextDrawBackgroundColor(Speedo4[playerid], 255); TextDrawFont(Speedo4[playerid], 1); TextDrawLetterSize(Speedo4[playerid], 0.230000, 1.000000); TextDrawColor(Speedo4[playerid], 522539007); TextDrawSetOutline(Speedo4[playerid], 1); TextDrawSetProportional(Speedo4[playerid], 1);
    Speedo5[playerid] = TextDrawCreate(152.000000, 393.000000, "100 km/h"); TextDrawBackgroundColor(Speedo5[playerid], 255); TextDrawFont(Speedo5[playerid], 1); TextDrawLetterSize(Speedo5[playerid], 0.230000, 1.000000); TextDrawColor(Speedo5[playerid], -1); TextDrawSetOutline(Speedo5[playerid], 1); TextDrawSetProportional(Speedo5[playerid], 1);
    Speedo6[playerid] = TextDrawCreate(176.000000, 352.000000, "1000/1000"); TextDrawBackgroundColor(Speedo6[playerid], 255); TextDrawFont(Speedo6[playerid], 1); TextDrawLetterSize(Speedo6[playerid], 0.230000, 1.000000); TextDrawColor(Speedo6[playerid], -1); TextDrawSetOutline(Speedo6[playerid], 1); TextDrawSetProportional(Speedo6[playerid], 1);
    Speedo7[playerid] = TextDrawCreate(190.000000, 366.000000, "100%"); TextDrawBackgroundColor(Speedo7[playerid], 255); TextDrawFont(Speedo7[playerid], 1); TextDrawLetterSize(Speedo7[playerid], 0.230000, 1.000000); TextDrawColor(Speedo7[playerid], -1); TextDrawSetOutline(Speedo7[playerid], 1); TextDrawSetProportional(Speedo7[playerid], 1);
    TextDrawHideForPlayer(playerid, Speedo0); TextDrawHideForPlayer(playerid, Speedo1); TextDrawHideForPlayer(playerid, Speedo2); TextDrawHideForPlayer(playerid, Speedo3); TextDrawHideForPlayer(playerid, Speedo4[playerid]); TextDrawHideForPlayer(playerid, Speedo5[playerid]); TextDrawHideForPlayer(playerid, Speedo6[playerid]); TextDrawHideForPlayer(playerid, Speedo7[playerid]); TextDrawHideForPlayer(playerid, Speedo8); }}


    Freundliche Grüsse
    DarkBoy

    // Jeder kann Scripten, er muss es nur wollen.
    // Allen die es wollen, denen helfe ich auch gerne dabei.


    // Wichtig für mich.
    - Dankbarkeit wenn einem geholfen wird.
    - Freundlichkeit Allgemein.



    DarkBoy der Scripter der Dunklen Scripts. :P