Textdraw - Klicke wie ich möchte, es passiert nichts.

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 habe eine Frage: Ich versuche an einem System mit anklickbaren Textdraws.
    Alles klappt bereit mit TextDrawSize etc. Aber, wenn ich mal auf die Textdraws klicke,
    passiert nichts. Aber der Hover-Effekt ist normal.


    Code:
    Function OnPlayerClickTextDraw(playerid, Text:clickedid)
    { //new bool:stadthallesys[MAX_PLAYERS];
    if(stadthallesys[playerid] == true)
    {
    if(clickedid == StadthalleTD[playerid][24])
    {
    stadthallesys[playerid] = true;
    SelectTextDraw(playerid, 0xBEBEBEFF);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][0]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][1]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][2]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][3]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][4]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][5]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][6]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][7]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][8]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][9]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][10]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][11]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][12]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][13]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][14]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][15]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][16]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][17]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][18]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][19]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][20]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][21]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][21]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][22]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][23]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][24]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][25]);
    SendClientMessage(playerid, COLOR_GRAD1, "Du hast auf irgendetwas geklickt!");
    return 0;
    }
    if(clickedid == INVALID_TEXT_DRAW)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Frau Schmitz: Okay, ich wünsche ihnen noch einen schönen Tag!");
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][0]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][1]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][2]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][3]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][4]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][5]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][6]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][7]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][8]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][9]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][10]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][11]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][12]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][13]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][14]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][15]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][16]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][17]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][18]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][19]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][20]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][21]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][21]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][22]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][23]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][24]);
    PlayerTextDrawHide(playerid, StadthalleTD[playerid][25]);
    CancelSelectTextDraw(playerid);
    stadthallesys[playerid] = false;
    return 0;
    }
    return 1;
    }
    return 1;
    }