(TextDraw) You Selected:65535 (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
  • Hallo ;)


    Wie die Überschrieft schon sagt habe ich ein Problem mit dem Selecten des Textdraws. Ich kann es zwar anklicken und es geht auch wie ichs wollte aber schon beim einloggen wo die´s noch nicht erscheinen soll kommt 1000mal (TextDraw) You selcted:65535


    Ausschnitt ChatLog:
    [12:56:19] {FFFFFF}SA-MP {B9B9BF}0.3e {FFFFFF}Started
    [12:56:22] Connecting to 127.0.0.1:7777...
    [12:56:22] Connected. Joining the game...
    [12:56:25] Connected to {B9B9BF}SA-MP 0.3 Server
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:25] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:26] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:27] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    [12:56:28] (TextDraw) You selected: 65535
    Hier wie ich es eingefügt habe:
    Variablen
    new Text:Textdraw0;
    new Text:Textdraw1;
    new servertimer;
    OnGameModeInit()
    servertimer = SetTimer("Update", 6000, 1);
    Textdraw0 = TextDrawCreate(155.000000, 284.000000, "Zum eintreten auf (Enter) klicken");
    TextDrawAlignment(Textdraw0, 3);
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 0);
    TextDrawLetterSize(Textdraw0, 0.619999, 1.600000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);
    Textdraw1 = TextDrawCreate(42.000000, 315.000000, "ENTER");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 2);
    TextDrawLetterSize(Textdraw1, 0.719999, 2.399999);
    TextDrawColor(Textdraw1, -65281);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
    TextDrawSetSelectable(Textdraw1, true);
    TextDrawSetSelectable(Textdraw0, false);
    public OnGameModeExit()
    {
    KillTimer(servertimer);
    return 1;
    }
    public OnPlayerClickTextDraw(playerid, Text:clickedid)
    {
    if(clickedid == Textdraw1)
    {
    PlayerPort(playerid);
    }
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw0);
    CancelSelectTextDraw(playerid);
    return 1;
    }
    public Update()
    {
    for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
    {
    if(NeerOfEnter(playerid))
    {
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    SelectTextDraw(playerid, 0x00FF00FF);
    }
    else
    {
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw0);
    CancelSelectTextDraw(playerid);
    }
    }
    return 1;
    }
    public NeerOfEnter(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1123.4830,-2036.9380,69.8870))
    {
    return 1;
    }
    }
    return 0;
    }
    public PlayerPort(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1123.4830,-2036.9380,69.8870))
    {
    SetPlayerPos(playerid, 379.0703,-2057.4773,10.7084);
    SetPlayerFacingAngle(playerid,176.5881);
    SetPlayerInterior(playerid,0);
    SetCameraBehindPlayer(playerid);
    }
    return 1;
    }


    Hoffe mir kann jemand weiterhelfen ;) LG Oliver