Textdraws werden nicht angezeigt

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 hab ein Problem denn meine Textdraws werden nicht angezeigt keine ahung warum?


    //Textdraws
    new Text:uhr1;
    new Text:uhr2;
    new Text:speed0;
    new Text:speed1;
    new Text:speed2;
    new Text:speed3;
    new Text:speed4;
    new Text:speed5;
    new Text:speed6;
    new Text:speed7;
    new Text:speed8;


    //Textdraws
    uhr1 = TextDrawCreate(557.000000, 23.000000, "18:12:14");
    TextDrawBackgroundColor(uhr1, 255);
    TextDrawFont(uhr1, 1);
    TextDrawLetterSize(uhr1, 0.230000, 1.000000);
    TextDrawColor(uhr1, -1);
    TextDrawSetOutline(uhr1, 1);
    TextDrawSetProportional(uhr1, 1);


    uhr2 = TextDrawCreate(557.000000, 13.000000, "30.12.2014");
    TextDrawBackgroundColor(uhr2, 255);
    TextDrawFont(uhr2, 1);
    TextDrawLetterSize(uhr2, 0.200000, 1.000000);
    TextDrawColor(uhr2, -1);
    TextDrawSetOutline(uhr2, 1);
    TextDrawSetProportional(uhr2, 1);

    speed0 = TextDrawCreate(640.000000, 340.000000, "_");
    TextDrawBackgroundColor(speed0, 255);
    TextDrawFont(speed0, 1);
    TextDrawLetterSize(speed0, 0.500000, 0.000000);
    TextDrawColor(speed0, -1);
    TextDrawSetOutline(speed0, 0);
    TextDrawSetProportional(speed0, 1);
    TextDrawSetShadow(speed0, 1);
    TextDrawUseBox(speed0, 1);
    TextDrawBoxColor(speed0, 255);
    TextDrawTextSize(speed0, 470.000000, 140.000000);


    speed1 = TextDrawCreate(640.000000, 400.000000, "_");
    TextDrawBackgroundColor(speed1, 255);
    TextDrawFont(speed1, 1);
    TextDrawLetterSize(speed1, 0.500000, 0.000000);
    TextDrawColor(speed1, -1);
    TextDrawSetOutline(speed1, 0);
    TextDrawSetProportional(speed1, 1);
    TextDrawSetShadow(speed1, 1);
    TextDrawUseBox(speed1, 1);
    TextDrawBoxColor(speed1, 255);
    TextDrawTextSize(speed1, 470.000000, 140.000000);


    speed2 = TextDrawCreate(474.000000, 340.000000, "_");
    TextDrawBackgroundColor(speed2, 255);
    TextDrawFont(speed2, 1);
    TextDrawLetterSize(speed2, 0.559999, 6.700001);
    TextDrawColor(speed2, -1);
    TextDrawSetOutline(speed2, 0);
    TextDrawSetProportional(speed2, 1);
    TextDrawSetShadow(speed2, 1);
    TextDrawUseBox(speed2, 1);
    TextDrawBoxColor(speed2, 255);
    TextDrawTextSize(speed2, 466.000000, 44.000000);


    speed3 = TextDrawCreate(644.000000, 340.000000, "_");
    TextDrawBackgroundColor(speed3, 255);
    TextDrawFont(speed3, 1);
    TextDrawLetterSize(speed3, 0.359999, 6.700001);
    TextDrawColor(speed3, -1);
    TextDrawSetOutline(speed3, 0);
    TextDrawSetProportional(speed3, 1);
    TextDrawSetShadow(speed3, 1);
    TextDrawUseBox(speed3, 1);
    TextDrawBoxColor(speed3, 255);
    TextDrawTextSize(speed3, 635.000000, 44.000000);


    speed4 = TextDrawCreate(640.000000, 343.000000, "_");
    TextDrawBackgroundColor(speed4, 255);
    TextDrawFont(speed4, 1);
    TextDrawLetterSize(speed4, 0.290000, 5.899999);
    TextDrawColor(speed4, -1);
    TextDrawSetOutline(speed4, 0);
    TextDrawSetProportional(speed4, 1);
    TextDrawSetShadow(speed4, 1);
    TextDrawUseBox(speed4, 1);
    TextDrawBoxColor(speed4, 673720575);
    TextDrawTextSize(speed4, 469.000000, 50.000000);


    speed5 = TextDrawCreate(474.000000, 345.000000, "Speed:");
    TextDrawBackgroundColor(speed5, 255);
    TextDrawFont(speed5, 1);
    TextDrawLetterSize(speed5, 0.240000, 1.000000);
    TextDrawColor(speed5, 65535);
    TextDrawSetOutline(speed5, 1);
    TextDrawSetProportional(speed5, 1);


    speed6 = TextDrawCreate(507.000000, 347.000000, "150");
    TextDrawBackgroundColor(speed6, 255);
    TextDrawFont(speed6, 1);
    TextDrawLetterSize(speed6, 0.240000, 0.699999);
    TextDrawColor(speed6, -1);
    TextDrawSetOutline(speed6, 1);
    TextDrawSetProportional(speed6, 1);


    speed7 = TextDrawCreate(479.000000, 356.000000, "Tank:");
    TextDrawBackgroundColor(speed7, 255);
    TextDrawFont(speed7, 1);
    TextDrawLetterSize(speed7, 0.240000, 1.000000);
    TextDrawColor(speed7, -65281);
    TextDrawSetOutline(speed7, 1);
    TextDrawSetProportional(speed7, 1);


    speed8 = TextDrawCreate(507.000000, 358.000000, "150");
    TextDrawBackgroundColor(speed8, 255);
    TextDrawFont(speed8, 1);
    TextDrawLetterSize(speed8, 0.240000, 0.699999);
    TextDrawColor(speed8, -1);
    TextDrawSetOutline(speed8, 1);
    TextDrawSetProportional(speed8, 1);


    public sekunde()
    {
    new string[128];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(!IsPlayerConnected(i))continue;
    if(!IsPlayerInAnyVehicle(i))continue;
    format(string,sizeof(string),"%i km/h",getPlayerSpeed(i));
    TextDrawSetString(speed6,string);
    }
    new stunde,minute,sec,jahr,monat,tag;
    gettime(stunde,minute,sec);
    getdate(jahr,monat,tag);
    format(string,sizeof(string),"02d:02d:02d",stunde,minute,sec);
    TextDrawSetString(uhr1,string);
    format(string,sizeof(string),"02d.02d.02d",tag,monat,jahr);
    TextDrawSetString(uhr2,string);
    return 1;
    }


    if(newstate == PLAYER_STATE_DRIVER)
    {
    TextDrawShowForPlayer(playerid,speed0);
    TextDrawShowForPlayer(playerid,speed1);
    TextDrawShowForPlayer(playerid,speed2);
    TextDrawShowForPlayer(playerid,speed3);
    TextDrawShowForPlayer(playerid,speed4);
    TextDrawShowForPlayer(playerid,speed5);
    TextDrawShowForPlayer(playerid,speed6);
    TextDrawShowForPlayer(playerid,speed7);
    TextDrawShowForPlayer(playerid,speed8);
    return 1;
    }
    if(oldstate == PLAYER_STATE_DRIVER)
    {
    TextDrawHideForPlayer(playerid,speed0);
    TextDrawHideForPlayer(playerid,speed1);
    TextDrawHideForPlayer(playerid,speed2);
    TextDrawHideForPlayer(playerid,speed3);
    TextDrawHideForPlayer(playerid,speed4);
    TextDrawHideForPlayer(playerid,speed5);
    TextDrawHideForPlayer(playerid,speed6);
    TextDrawHideForPlayer(playerid,speed7);
    TextDrawHideForPlayer(playerid,speed8);
    }