Frage zum Tacho.

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
  • Hallo Community,


    ich möchte mein Tacho bearbeiten, doch habe dazu eine Frage.
    Das Tachosystem an sich kann bleiben, doch ich möchte nur die Textdraws ändern.


    Das Problem ist, dass wenn ich meine Textdraws einfüge und die alten lösche, kommen immer Fehler.
    Und die jetztigen Tacho Textdraws sehen irgendwie komisch aus, ganz anders als meine.


    Wie könnte ich die Textdraws bearbeiten sodass keine Fehler mehr kommen oder das die Textdraws ingame funktionieren?


    Die jetzigen Textdraws:


    Tacho[playerid][0] = CreatePlayerTextDraw(playerid,455,455,"_");//tachometer box
    PlayerTextDrawUseBox(playerid,Tacho[playerid][0],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][0],0x00000067);
    PlayerTextDrawBackgroundColor(playerid,Tacho[playerid][0],0x00000067);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][0],640,480);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][0],1.000000,-5.000000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][0],1);


    Tacho[playerid][1] = CreatePlayerTextDraw(playerid,456,416,"_");//fahrzeug namen
    PlayerTextDrawFont(playerid,Tacho[playerid][1],1);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][1],0);
    PlayerTextDrawColor(playerid,Tacho[playerid][1],0xFFFFFFFF);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][1],0.400000,0.800000);


    Tacho[playerid][2] = CreatePlayerTextDraw(playerid,456,431,"_");//geschwindigkeits anzeige
    PlayerTextDrawFont(playerid,Tacho[playerid][2],2);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][2],0);
    PlayerTextDrawColor(playerid,Tacho[playerid][2],0xFFFFFFFF);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][2],0.300000,0.900000);


    Tacho[playerid][3] = CreatePlayerTextDraw(playerid,585,416,"Tank:");//tank
    PlayerTextDrawFont(playerid,Tacho[playerid][3],2);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][3],0);
    PlayerTextDrawColor(playerid,Tacho[playerid][3],0xFFFFFFFF);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][3],0.400000,0.800000);


    Tacho[playerid][4] = CreatePlayerTextDraw(playerid,520,430,"_");//virtuale tank anzeige 100% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][4],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][4],0x05B200FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][4],625,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][4],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][4],1);


    Tacho[playerid][5] = CreatePlayerTextDraw(playerid,525,430,"_");//virtuale tank anzeige 90% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][5],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][5],0x05B200FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][5],620,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][5],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][5],1);


    Tacho[playerid][6] = CreatePlayerTextDraw(playerid,530,430,"_");//virtuale tank anzeige 80% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][6],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][6],0x05B200FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][6],615,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][6],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][6],1);


    Tacho[playerid][7] = CreatePlayerTextDraw(playerid,535,430,"_");//virtuale tank anzeige 65% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][7],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][7],0x05E400FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][7],610,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][7],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][7],1);


    Tacho[playerid][8] = CreatePlayerTextDraw(playerid,540,430,"_");//virtuale tank anzeige 50% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][8],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][8],0xFFFF00FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][8],605,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][8],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][8],1);


    Tacho[playerid][9] = CreatePlayerTextDraw(playerid,545,430,"_");//virtuale tank anzeige 40% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][9],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][9],0xFFFF00FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][9],600,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][9],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][9],1);


    Tacho[playerid][10] = CreatePlayerTextDraw(playerid,550,430,"_");//virtuale tank anzeige 30% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][10],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][10],0xFFB200FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][10],595,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][10],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][10],1);


    Tacho[playerid][11] = CreatePlayerTextDraw(playerid,555,430,"_");//virtuale tank anzeige 20% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][11],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][11],0xFFB200FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][11],590,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][11],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][11],1);


    Tacho[playerid][12] = CreatePlayerTextDraw(playerid,560,430,"_");//virtuale tank anzeige 10% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][12],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][12],0xFF0100FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][12],585,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][12],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][12],1);


    Tacho[playerid][13] = CreatePlayerTextDraw(playerid,565,430,"_");//virtuale tank anzeige 5% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][13],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][13],0xFF0100FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][13],575,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][13],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][13],1);


    Tacho[playerid][14] = CreatePlayerTextDraw(playerid,570,430,"_");//virtuale tank anzeige 0% tank
    PlayerTextDrawUseBox(playerid,Tacho[playerid][14],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][14],0xFF0100FF);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][14],570,440);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][14],0.500000,0.800000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][14],1);


    Tacho[playerid][15] = CreatePlayerTextDraw(playerid,518,428,"_");//virtuale tank full anzeige
    PlayerTextDrawUseBox(playerid,Tacho[playerid][15],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][15],0xFFFFFF4F);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][15],627,442);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][15],0.500000,1.200000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][15],1);


    Tacho[playerid][16] = CreatePlayerTextDraw(playerid,535,430,"_");//fahrzeug tank anzeige digital
    PlayerTextDrawFont(playerid,Tacho[playerid][16],2);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][16],0);
    PlayerTextDrawColor(playerid,Tacho[playerid][16],0x000000FF);
    PlayerTextDrawSetShadow(playerid,Tacho[playerid][16],0);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][16],0.500000,0.800000);


    Tacho[playerid][17] = CreatePlayerTextDraw(playerid,555,400,"_");//kilometerstand anzeige box
    PlayerTextDrawUseBox(playerid,Tacho[playerid][17],1);
    PlayerTextDrawBoxColor(playerid,Tacho[playerid][17],0x00000067);
    PlayerTextDrawBackgroundColor(playerid,Tacho[playerid][17],0x00000067);
    PlayerTextDrawTextSize(playerid,Tacho[playerid][17],640,450);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][17],1.000000,1.100000);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][17],1);


    Tacho[playerid][18] = CreatePlayerTextDraw(playerid,557.500000,400.500000,"0.0KM");//kilometerstand anzeige digital
    PlayerTextDrawFont(playerid,Tacho[playerid][18],1);
    PlayerTextDrawAlignment(playerid,Tacho[playerid][18],0);
    PlayerTextDrawColor(playerid,Tacho[playerid][18],0xFEFEFEFF);
    PlayerTextDrawSetShadow(playerid,Tacho[playerid][18],0);
    PlayerTextDrawLetterSize(playerid,Tacho[playerid][18],0.400000,0.800000);



    Jeffry

    Einmal editiert, zuletzt von Tobi_Wayne ()