Textdraw Anklickbar problem

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
  • Hey,


    ich habe versucht die Textdraws anklickbar zumache es geht aber nicht.... Intro7 = TextDrawCreate(240.8020003, 356.159942, "Anmelden");
    TextDrawLetterSize(Intro7, 0.449999, 1.600000);
    TextDrawAlignment(Intro7, 1);
    TextDrawColor(Intro7, -1);
    TextDrawSetShadow(Intro7, 0);
    TextDrawSetOutline(Intro7, 1);
    TextDrawBackgroundColor(Intro7, 51);
    TextDrawFont(Intro7, 1);
    TextDrawSetProportional(Intro7, 1);
    TextDrawTextSize(Intro7,240.800003, 356.159942);
    TextDrawSetSelectable(Intro7, true);


    Intro8 = TextDrawCreate(235.200012, 3728.559936, "Registrieren");
    TextDrawLetterSize(Intro8, 0.449999, 1.600000);
    TextDrawAlignment(Intro8, 1);
    TextDrawColor(Intro8, -1);
    TextDrawSetShadow(Intro8, 0);
    TextDrawSetOutline(Intro8, 1);
    TextDrawBackgroundColor(Intro8, 51);
    TextDrawFont(Intro8, 1);
    TextDrawSetProportional(Intro8, 1);
    TextDrawTextSize(Intro8,235.200012, 378.559936);
    TextDrawSetSelectable(Intro8, true);


    Intro9 = TextDrawCreate(340.799896, 364.3373168, "Informationen");
    TextDrawLetterSize(Intro9, 0.449999, 1.600000);
    TextDrawAlignment(Intro9, 1);
    TextDrawColor(Intro9, -1);
    TextDrawSetShadow(Intro9, 0);
    TextDrawSetOutline(Intro9, 1);
    TextDrawBackgroundColor(Intro9, 51);
    TextDrawFont(Intro9, 1);
    TextDrawSetProportional(Intro9, 1);
    TextDrawTextSize(Intro9,340.799896, 364.373168);
    TextDrawSetSelectable(Intro9, true);


    public OnPlayerConnect(playerid)
    {
    new spdatei[64];
    new name[MAX_PLAYER_NAME];
    SetPlayerColor(playerid,WEISS);
    GetPlayerName(playerid,name,sizeof(name));
    format(spdatei,sizeof(spdatei),"/Spieler/%s.txt",name);
    PlayAudioStreamForPlayer(playerid, "http://its-rp.com/server/Alligatoah - Willst Du Lyrics.mp3");
    if(dini_Exists(spdatei))
    {
    TextDrawSetSelectable(Intro7, true);
    SelectTextDraw(playerid, 0xA3B4C5FF);
    TextDrawShowForPlayer(playerid,Intro);
    TextDrawShowForPlayer(playerid,Intro1);
    TextDrawShowForPlayer(playerid,Intro2);
    TextDrawShowForPlayer(playerid,Intro3);
    TextDrawShowForPlayer(playerid,Intro4);
    TextDrawShowForPlayer(playerid,Intro5);
    TextDrawShowForPlayer(playerid,Intro6);
    TextDrawShowForPlayer(playerid,Intro7);
    TextDrawShowForPlayer(playerid,Intro8);
    TextDrawShowForPlayer(playerid,Intro9);
    TextDrawShowForPlayer(playerid,Intro10);
    TextDrawShowForPlayer(playerid,Intro11);
    }
    else
    {
    TextDrawSetSelectable(Intro8, true);
    SelectTextDraw(playerid, 0xA3B4C5FF);
    TextDrawShowForPlayer(playerid,Intro);
    TextDrawShowForPlayer(playerid,Intro1);
    TextDrawShowForPlayer(playerid,Intro2);
    TextDrawShowForPlayer(playerid,Intro3);
    TextDrawShowForPlayer(playerid,Intro4);
    TextDrawShowForPlayer(playerid,Intro5);
    TextDrawShowForPlayer(playerid,Intro6);
    TextDrawShowForPlayer(playerid,Intro7);
    TextDrawShowForPlayer(playerid,Intro8);
    TextDrawShowForPlayer(playerid,Intro9);
    TextDrawShowForPlayer(playerid,Intro10);
    TextDrawShowForPlayer(playerid,Intro11);
    }
    return 1;
    }


    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
    if(_:clickedid !=INVALID_TEXT_DRAW)
    {
    if(clickedid == Intro7)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Willkommen zurück. Bitte gebe dein Passwort ein","Login","Abbrechen");
    }
    else if(clickedid == Intro8)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Herzlich willkommen auf It's Roleplay. Bitte gebe ein Passwort ein.","Register","Abbrechen");
    }
    else if(clickedid == Intro9)
    {
    SendClientMessage(playerid,ROT,"TEST");
    }
    }
    return 1;
    }

    Einmal editiert, zuletzt von Maurice. ()