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
  • Guten Abend/Morgen,


    Ich bin an einem Login/register system dran mit anklickbaren textdraws aber das Problem ist die Textdraws werden nich angezeigt :(


    bitte um hilfe


    hier der Code:


    Enums:


    Inhalt anzeigen


    enum TextdrawS {
    Text:Top,
    Text:Down,
    Text:Name,
    Text:Welcome,
    Text:Auf,
    Text:Moto,
    Text:Strich,
    Text:Login,
    Text:Register,
    Text:News,
    Text:Info
    };
    new TextDrawInfo[10][TextdrawS];

    Bei ongamemodeInite:

    for(new i = 0; i > sizeof(TextDrawInfo); i++) {
    TextDrawInfo[i][Top] = TextDrawCreate(780.000000, -10.000000, "Oben");
    TextDrawBackgroundColor(TextDrawInfo[i][Top], 255);
    TextDrawFont(TextDrawInfo[i][Top], 1);
    TextDrawLetterSize(TextDrawInfo[i][Top], 0.500000, 13.000000);
    TextDrawColor(TextDrawInfo[i][Top], -1);
    TextDrawSetOutline(TextDrawInfo[i][Top], 0);
    TextDrawSetProportional(TextDrawInfo[i][Top], 1);
    TextDrawSetShadow(TextDrawInfo[i][Top], 1);
    TextDrawUseBox(TextDrawInfo[i][Top], 1);
    TextDrawBoxColor(TextDrawInfo[i][Top], 731);
    TextDrawTextSize(TextDrawInfo[i][Top], -61.000000, -12.000000);

    TextDrawInfo[i][Down] = TextDrawCreate(780.000000, 320.000000, "Unten");
    TextDrawBackgroundColor(TextDrawInfo[i][Down], 255);
    TextDrawFont(TextDrawInfo[i][Down], 1);
    TextDrawLetterSize(TextDrawInfo[i][Down], 0.500000, 19.000000);
    TextDrawColor(TextDrawInfo[i][Down], -1);
    TextDrawSetOutline(TextDrawInfo[i][Down], 0);
    TextDrawSetProportional(TextDrawInfo[i][Down], 1);
    TextDrawSetShadow(TextDrawInfo[i][Down], 1);
    TextDrawUseBox(TextDrawInfo[i][Down], 1);
    TextDrawBoxColor(TextDrawInfo[i][Down], 187);
    TextDrawTextSize(TextDrawInfo[i][Down], -61.000000, -12.000000);

    TextDrawInfo[i][Name] = TextDrawCreate(287.000000, 140.000000, "Los Santos - City Roleplay");
    TextDrawBackgroundColor(TextDrawInfo[i][Name], 65535);
    TextDrawFont(TextDrawInfo[i][Name], 0);
    TextDrawLetterSize(TextDrawInfo[i][Name], 0.500000, 2.000000);
    TextDrawColor(TextDrawInfo[i][Name], 7602175);
    TextDrawSetOutline(TextDrawInfo[i][Name], 1);
    TextDrawSetProportional(TextDrawInfo[i][Name], 1);

    TextDrawInfo[i][Welcome] = TextDrawCreate(231.000000, 112.000000, "Willkommen");
    TextDrawBackgroundColor(TextDrawInfo[i][Welcome], 65535);
    TextDrawFont(TextDrawInfo[i][Welcome], 0);
    TextDrawLetterSize(TextDrawInfo[i][Welcome], 0.600000, 2.000000);
    TextDrawColor(TextDrawInfo[i][Welcome], 7602175);
    TextDrawSetOutline(TextDrawInfo[i][Welcome], 1);
    TextDrawSetProportional(TextDrawInfo[i][Welcome], 1);

    TextDrawInfo[i][Auf] = TextDrawCreate(319.000000, 122.000000, "auf");
    TextDrawBackgroundColor(TextDrawInfo[i][Auf], 255);
    TextDrawFont(TextDrawInfo[i][Auf], 0);
    TextDrawLetterSize(TextDrawInfo[i][Auf], 0.599999, 1.600000);
    TextDrawColor(TextDrawInfo[i][Auf], -1);
    TextDrawSetOutline(TextDrawInfo[i][Auf], 0);
    TextDrawSetProportional(TextDrawInfo[i][Auf], 1);
    TextDrawSetShadow(TextDrawInfo[i][Auf], 1);

    TextDrawInfo[i][Moto] = TextDrawCreate(321.000000, 164.000000, "WE ARE PURP ROLEPLAY");
    TextDrawBackgroundColor(TextDrawInfo[i][Moto], 255);
    TextDrawFont(TextDrawInfo[i][Moto], 0);
    TextDrawLetterSize(TextDrawInfo[i][Moto], 0.399999, 1.600000);
    TextDrawColor(TextDrawInfo[i][Moto], -1);
    TextDrawSetOutline(TextDrawInfo[i][Moto], 0);
    TextDrawSetProportional(TextDrawInfo[i][Moto], 1);
    TextDrawSetShadow(TextDrawInfo[i][Moto], 1);

    TextDrawInfo[i][Strich] = TextDrawCreate(204.000000, 32.000000, "l");
    TextDrawBackgroundColor(TextDrawInfo[i][Strich], 255);
    TextDrawFont(TextDrawInfo[i][Strich], 1);
    TextDrawLetterSize(TextDrawInfo[i][Strich], 0.500000, 37.000000);
    TextDrawColor(TextDrawInfo[i][Strich], -1);
    TextDrawSetOutline(TextDrawInfo[i][Strich], 0);
    TextDrawSetProportional(TextDrawInfo[i][Strich], 1);
    TextDrawSetShadow(TextDrawInfo[i][Strich], 1);

    TextDrawInfo[i][Login] = TextDrawCreate(63.000000, 125.000000, "Einloggen");
    TextDrawAlignment(TextDrawInfo[i][Login], 2);
    TextDrawBackgroundColor(TextDrawInfo[i][Login], 255);
    TextDrawFont(TextDrawInfo[i][Login], 1);
    TextDrawLetterSize(TextDrawInfo[i][Login], 0.500000, 2.000000);
    TextDrawColor(TextDrawInfo[i][Login], 16711877);
    TextDrawSetOutline(TextDrawInfo[i][Login], 0);
    TextDrawSetProportional(TextDrawInfo[i][Login], 1);
    TextDrawSetShadow(TextDrawInfo[i][Login], 1);
    TextDrawSetSelectable(TextDrawInfo[i][Login], 1);

    Inhalt anzeigen

    Inhalt anzeigen
    TextDrawInfo[i][Register] = TextDrawCreate(25.000000, 151.000000, "Registrieren");
    TextDrawBackgroundColor(TextDrawInfo[i][Register], 255);
    TextDrawFont(TextDrawInfo[i][Register], 1);
    TextDrawLetterSize(TextDrawInfo[i][Register], 0.500000, 2.000000);
    TextDrawColor(TextDrawInfo[i][Register], -16777019);
    TextDrawSetOutline(TextDrawInfo[i][Register], 0);
    TextDrawSetProportional(TextDrawInfo[i][Register], 1);
    TextDrawSetShadow(TextDrawInfo[i][Register], 1);
    TextDrawSetSelectable(TextDrawInfo[i][Register], 1);

    Inhalt anzeigen

    Inhalt anzeigen
    TextDrawInfo[i][News] = TextDrawCreate(72.000000, 178.000000, "Neuigkeiten");
    TextDrawAlignment(TextDrawInfo[i][News], 2);
    TextDrawBackgroundColor(TextDrawInfo[i][News], 255);
    TextDrawFont(TextDrawInfo[i][News], 1);
    TextDrawLetterSize(TextDrawInfo[i][News], 0.500000, 2.000000);
    TextDrawColor(TextDrawInfo[i][News], 16711877);
    TextDrawSetOutline(TextDrawInfo[i][News], 0);
    TextDrawSetProportional(TextDrawInfo[i][News], 1);
    TextDrawSetShadow(TextDrawInfo[i][News], 1);
    TextDrawSetSelectable(TextDrawInfo[i][News], 1);

    Inhalt anzeigen

    Inhalt anzeigen
    TextDrawInfo[i][Info] = TextDrawCreate(67.000000, 202.000000, "Serverinfo");
    TextDrawAlignment(TextDrawInfo[i][Info], 2);
    TextDrawBackgroundColor(TextDrawInfo[i][Info], 255);
    TextDrawFont(TextDrawInfo[i][Info], 1);
    TextDrawLetterSize(TextDrawInfo[i][Info], 0.500000, 2.000000);
    TextDrawColor(TextDrawInfo[i][Info], 16711877);
    TextDrawSetOutline(TextDrawInfo[i][Info], 0);
    TextDrawSetProportional(TextDrawInfo[i][Info], 1);
    TextDrawSetShadow(TextDrawInfo[i][Info], 1);
    TextDrawSetSelectable(TextDrawInfo[i][Info], 1);
    }

    Inhalt anzeigen

    Inhalt anzeigen
    bei OnPlayerConnect:

    Inhalt anzeigen

    Inhalt anzeigen

    for(new i = 0; i > sizeof(TextDrawInfo); i++) {
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Info]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][News]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Register]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Login]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Strich]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Moto]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Auf]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Welcome]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Name]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Down]);
    TextDrawShowForPlayer(playerid, TextDrawInfo[i][Top]);
    }