Login/Register Textdraw nicht anklickbar

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, mein Login und register Textdraw ist leider nicht anklickbar.. die anderen im Script gehen alle..



    SelectTextDraw(playerid, 0xA3B4C5FF);//ganz oben Onplayerconnect


    Spoiler anzeigen
    Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 279.011108, "Register");
    PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.000000, 1.895678);
    PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 258.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw3[playerid], true);

    Spoiler anzeigen
    Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 308.877838, "Informationen");
    PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.000000, 1.878396);
    PlayerTextDrawTextSize(playerid, Textdraw4[playerid], 258.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawUseBox(playerid, Textdraw4[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw4[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);

    Spoiler anzeigen
    Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 338.744476, "Verlassen");
    PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 1.895678);
    PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 258.000000, 0.000000);
    PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw5[playerid], true);


    Und was passieren soll:


    if(_:playerid != INVALID_TEXT_DRAW)
    {
    if(playertextid == Textdraw3[playerid])
    {
    if(cache_num_rows() == 0)
    {
    SendClientMessage(playerid, 0xFFFFFFFF,"________Herzlich Wilkommen auf San Francisco Reallife________");
    SendClientMessage(playerid, 0xFFFFFFFF,"Datenbank: Akte konnte nicht gefunden werden. Bitte Registrieren Sie sich!");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Bitte gib dein Persöhnliches Passwort ein:","Register","Abbrechen");
    }
    else
    {
    SendClientMessage(playerid, 0xFFFFFFFF,"________Herzlich Wilkommen auf San Francisco Reallife________");
    SendClientMessage(playerid, 0xFFFFFFFF,"Datenbank: Akte wurde gefunden. Bitte Loggen Sie sich ein!");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Einloggen","Bitte gib dein Passwort ein:","Login","Abbrechen");
    }
    }
    }



    Ich verstehe nicht wieso er nicht anklickbar ist und ich kann auf "Spawn" klicken dann werde ich gespawnt aber nicht eingeloggt das soll auch nicht sein :/


    MfG



    Die heutigen Noobs, sind die Profis von morgen! :thumbup:


    Danke an Jeffry für seine ständige Hilfsbereitschaft und freundliche Art. 8)

  • Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 279.011108, "Register");
    PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 1.000000, 1.895678);
    PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 490.000000, 15.000000);
    PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
    PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw3[playerid], true);
    PlayerTextDrawShow(playerid, Textdraw3[playerid]);
    So klappt es, habe es getestet.
    Du hattest keine Textfarbe, keine Textbreite und die Boxbreite war falsch.

  • Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 279.011108, "Register");
    PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 1.000000, 1.895678);
    PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 490.000000, 17.000000);
    PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw3[playerid], 0xFFFFFFFF);
    PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw3[playerid], true);


    Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 308.877838, "Informationen");
    PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 1.000000, 1.878396);
    PlayerTextDrawTextSize(playerid, Textdraw4[playerid], 550.000000, 17.000000);
    PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw4[playerid], 0xFFFFFFFF);
    PlayerTextDrawUseBox(playerid, Textdraw4[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw4[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw4[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);


    Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 388.500000, 338.744476, "Verlassen");
    PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 1.000000, 1.895678);
    PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 500.000000, 17.000000);
    PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw5[playerid], 0xFFFFFFFF);
    PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
    PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 102);
    PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw5[playerid], true);


    Gegebenenfalls musst du halt die Farben etc noch anpassen. Fehler waren nur bei PlayerTextDrawLetterSize und PlayerTextDrawTextSize, das kannst du ja vergleichen.
    Und PlayerTextDrawColor war 0, also unsichtbar.