Plötzlich keine TextDraws mehr

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 Tag zusammen,


    ich habe ein kleines Problem.
    Vor ein paar Wochen habe ich mein Script mit einem anderen User hier im Forum getestet bzw. wir wollten es testen und sind schon im Tutorial gescheitert.
    Da ich eine Skin-Auswahl per TextDraws habe, funktioniert das ganze schon mal nicht.


    Es werden keine TextDraws angezeigt, ob diese Skin Auswahl, das Server Logo, die Uhrzeit oder sonst was.
    Das ganze wurde per "CreatePlayerTextDraw" erstellt.

    stock LoadPlayerTextDraws(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    // Dann bspw. ein TD:
    // Support System

    pTextSupport[playerid][0] = CreatePlayerTextDraw(playerid, 1.000000, 218.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][0], 0.230000, 1.599998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][0], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][0], 100.000000, 0.000000);
    }
    return 1;
    }


    Unter OnPlayerConnect:
    LoadPlayerTextDraws(playerid);


    Mehr nicht.
    Ich weiß auch leider nicht mehr, was ich zuletzt geändert habe / haben könnte. Aber es war bestimmt nichts TextDraw Technisches.

  • Doch doch, das TextDraw wird dem Spieler angezeigt.
    Nur sind es halt viele Funktionen wo die TextDraws angezeigt werden.


    Beim Login Menü ist noch nichts zu sehen, das ist normal.
    Sollte ich mich normal einloggen, dann soll das auch passieren:
    format(query, sizeof(query), "%02d.%02d.%04d", tag, monat, jahr);
    PlayerTextDrawSetString(playerid, pTextHUD[playerid][0], query);
    format(query, sizeof(query), "%02d:%02d", stunde, minute);
    PlayerTextDrawSetString(playerid, pTextHUD[playerid][1], query);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][0]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][1]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][3]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][6]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][2]);


    Ich habe vergessen zu erwähnen:
    Spieler "0" hat die TextDraws. Spieler "1" hat wiederum keine.
    Wir haben es nur zu zweit getestet, also weiß ich nicht wie es bei ID 3,4,5,.. ist.

  • Dann poste bitte mal den gesamten dazugehörigen Code, damit ich mir die Abfolge heute Abend mal genauer anschauen kann. Es wird wohl am besten sein, wenn wir dann das ganze mal debuggen um so vielleicht den Fehler recht schnell zu finden.
    Falls du dich damit etwas auskennst, kannst du ja auch selbst schon anfangen den Code zu debuggen, ansonsten poste eben den Code, dann mache ich dir das später.

  • Okay.



    // Krankenhaus Timer
    if(Spieler[i][pTot] > 0)
    {
    if(Spieler[i][pTotUnix] > 0)
    {
    format(string, sizeof(string), "~r~Krankenhaus: ~w~%d Sekunden", (Spieler[i][pTotUnix]));
    PlayerTextDrawSetString(i, pTextTime[i][2], string);
    Spieler[i][pTotUnix] --;
    }
    else
    {
    Spieler[i][pTot] = 0;
    Spieler[i][pTotUnix] = 0;
    Spieler[i][pTotX] = 0.0;
    Spieler[i][pTotY] = 0.0;
    Spieler[i][pTotZ] = 0.0;
    SpawnPlayerEx(i);
    }
    }
    // Jail Timer
    if(Spieler[i][pJailed] > 0)
    {
    if(Spieler[i][pJailTime] > 0)
    {
    format(string, sizeof(string), "~r~Knast: ~w~%d Sekunden", Spieler[i][pJailTime]);
    PlayerTextDrawSetString(i, pTextTime[i][2], string);
    Spieler[i][pJailTime] --;
    }
    else
    {
    PlayerTextDrawHide(i, pTextTime[i][0]);
    PlayerTextDrawHide(i, pTextTime[i][1]);
    PlayerTextDrawHide(i, pTextTime[i][2]);
    Spieler[i][pJailed] = 0;
    Spieler[i][pJailTime] = 0;
    Spieler[i][pJailType] = 0;
    GameTextForPlayer(i, "~g~Freiheit", 4000, 1);
    SetPlayerInterior(i, 0);
    SetPlayerPos(i, 1544.4935,-1675.8558,13.5585);
    SetPlayerVirtualWorld(i, 0);
    UnfreezePlayer(i);
    }
    }
    // Tutorial Timer
    if(pTutorialSkinWait[i] > 1)pTutorialSkinWait[i] --;
    else if(pTutorialSkinWait[i] == 1)
    {
    ClearPlayerChat(i, 20);
    pTutorialSkinWait[i] = 0;
    for(new xS=0;xS<MAX_SKIN_DATA;xS++)
    {
    if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
    {
    pChoosedSkin[i] = SkinData[xS][skinID];
    pChoosedID[i] = xS;
    SetPlayerSkin(i, pChoosedSkin[i]);
    break;
    }
    }
    PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
    SelectTextDraw(i, 0xA3B4C5FF);

    SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
    SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
    SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
    SetPlayerFacingAngle(i, 173.5490);
    SetPlayerInterior(i, 3);
    SetPlayerVirtualWorld(i, 2000+i);
    FreezePlayer(i);
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Buttons drückst.");
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, drücke auf den entsprechenden Button.");
    }
    // Bus Timer
    if(Spieler[i][pBusTime] > 1)
    {
    if(GetPlayerCheckpointType(i) == CP_TYPE_BUS)
    {
    if(IsVehicleABus(vehicleid))
    {
    if(IsPlayerInCheckpoint(i))
    {
    Spieler[i][pBusTime] --;
    //format(string, sizeof(string), "~w~Haltestelle..~b~%d", Spieler[i][pBusTime]);
    //GameTextForPlayer(i, string, 1200, 5);
    ShowBusTextDraw(i);
    }
    }
    else
    {
    Spieler[i][pBusTime] = 0;
    HideBusTextDraw(i);
    SendClientMessage(i, COLOR_GREY, "** Der Countdown wurde abgebrochen!");
    }
    }
    }
    // Bei jeder Buslinie:
    case CP_BUSFAHRER_LINIE_1_1:{SetPlayerCheckpointEx(i, 1481.5775,-1730.3295,12.9539, 3.0, CP_BUSFAHRER_LINIE_1_2, CP_TYPE_BUS); SendVehicleMessage(vehicleid, COLOR_YELLOW, ">> "COLOR_HEX_WHITE"Nächste Haltestelle: Stadthalle"); PlayerPlaySound(i, 1057, 0, 0, 0); HideBusTextDraw(i); Spieler[i][pBusStamp] = gettime();}
    // Das hat allerdings funktioniert..


    // Minuten Timer: (also jede Minute repeatet er)
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsLoggedIn(i))
    {
    if(Spieler[i][pLoggedIn])
    {
    format(string, sizeof(string), "%02d.%02d.%04d", tag, monat, jahr);
    PlayerTextDrawSetString(i, pTextHUD[i][0], string);
    format(string, sizeof(string), "%02d:%02d", stunde, minute);
    PlayerTextDrawSetString(i, pTextHUD[i][1], string);
    format(string, sizeof(string), "%s", SERVER_FORUM_URL);
    PlayerTextDrawSetString(i, pTextHUD[i][6], string);
    }
    }
    }


    // GameModeExit
    for(new i=0;i<GetMaxPlayers();i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsPlayerNPC(i))Kick(i);
    for(new x=0;x<sizeof(pTextSpeedo);x++)
    {
    PlayerTextDrawDestroy(i, pTextSpeedo[i][x]);
    }
    for(new x=0;x<sizeof(pTextSkinChoose);x++)
    {
    PlayerTextDrawDestroy(i, pTextSkinChoose[i][x]);
    }
    for(new x=0;x<sizeof(pTextAnim);x++)
    {
    PlayerTextDrawDestroy(i, pTextAnim[i][x]);
    }
    for(new x=0;x<sizeof(pTextInfo);x++)
    {
    PlayerTextDrawDestroy(i, pTextInfo[i][x]);
    }
    for(new x=0;x<sizeof(pTextHUD);x++)
    {
    PlayerTextDrawDestroy(i, pTextHUD[i][x]);
    }
    for(new x=0;x<sizeof(pTextBus);x++)
    {
    PlayerTextDrawDestroy(i, pTextBus[i][x]);
    }
    for(new x=0;x<sizeof(pTextTime);x++)
    {
    PlayerTextDrawDestroy(i, pTextTime[i][x]);
    }
    for(new x=0;x<sizeof(pTextSupport);x++)
    {
    PlayerTextDrawDestroy(i, pTextSupport[i][x]);
    }
    for(new x=0;x<sizeof(pTextAdminDuty);x++)
    {
    PlayerTextDrawDestroy(i, pTextAdminDuty[i][x]);
    }
    for(new x=0;x<sizeof(pTextTazer);x++)
    {
    PlayerTextDrawDestroy(i, pTextTazer[i][x]);
    }
    if(Spieler[i][pLoggedIn])
    {
    SavePlayer(i);
    }
    }
    }


    // Connect
    LoadPlayerTextDraws(playerid);


    // Spawn
    PlayerTextDrawHide(playerid, pTextTime[playerid][0]);
    PlayerTextDrawHide(playerid, pTextTime[playerid][1]);
    PlayerTextDrawHide(playerid, pTextTime[playerid][2]);


    PlayerTextDrawHide(playerid, pTextSkinChoose[playerid][0]);
    PlayerTextDrawHide(playerid, pTextSkinChoose[playerid][1]);
    PlayerTextDrawHide(playerid, pTextSkinChoose[playerid][2]);
    CancelSelectTextDraw(playerid);


    if(Spieler[playerid][pJailed] == 1)
    {
    if(Spieler[playerid][pJailType] == 0)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 264.1042,77.8588,1001.0391);
    }
    else if(Spieler[playerid][pJailType] == 1)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 263.9286,82.1553,1000.1721+1);
    }
    else if(Spieler[playerid][pJailType] == 2)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 264.5096,87.0414,1000.1336+1);
    }
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }
    else if(Spieler[playerid][pJailed] == 2)
    {
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }
    if(Spieler[playerid][pTot] == 1)
    {
    SetPlayerPos(playerid, 1160.7430, -1323.7920, 20.6936);
    FreezePlayer(playerid);
    InterpolateCameraPos(playerid, 1204.180786, -1377.681518, 24.550359, 1202.254638, -1293.708007, 16.839622, (Spieler[playerid][pTotUnix]*1000));
    InterpolateCameraLookAt(playerid, 1199.928955, -1375.059204, 24.762796, 1198.413452, -1296.908081, 16.911756, (Spieler[playerid][pTotUnix]*1000));
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }


    Uhm joa, also das wäre zu viel .. ich hab vieles an TextDraws. :/
    Das würd mich jetzt locker 2-3 Stunden kosten alles rauszusuchen. :D

  • Oje, ich glaube so wird das nichts, mit dem Code fange ich gar nichts an, das sind viel zu viele Bruchstücke.
    Gehen wir anders an die Sache ran, wird eben etwas länger dauern, aber Schritt für Schritt ist hier wohl besser.


    Poste bitte den Code, mit dem du die Textdraws erstellst, die nicht angezeigt werden.
    Poste dazu den Code, mit dem du dem Spieler genau diese Textdraws anzeigen lässt.


    (Falls es mehrere Textdraws sind, reicht es wenn du ein paar nimmst, nicht dass du jetzt 100 Textdraws hier postest.)


    Dann debuggen wir zuerst den Teil.

  • Hast du Warnings beim Compilern vom Script? Wenn ja dann behebe alle Warnings. So krass es auch klingt das kann auch dazu führen das keine Textdraws angezeigt werden.

    Wer PALWAL-Sternchen vergibt, bekommt aus Prinzip ein Like 😏


    @palwal Donald Trump ist einer der besten Präsidenten welche die USA je hatte, meine Meinung.

  • Zitat

    Poste bitte den Code, mit dem du die Textdraws erstellst, die nicht angezeigt werden.


    Alle.

    stock LoadPlayerTextDraws(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    // Tazer Box
    pTextTazer[playerid][0] = CreatePlayerTextDraw(playerid, 650.000000, 0.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextTazer[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextTazer[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextTazer[playerid][0], 0.500000, 50.000000);
    PlayerTextDrawColor(playerid, pTextTazer[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextTazer[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextTazer[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextTazer[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextTazer[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextTazer[playerid][0], -156);
    PlayerTextDrawTextSize(playerid, pTextTazer[playerid][0], -20.000000, 11.000000);

    // Support System

    pTextSupport[playerid][0] = CreatePlayerTextDraw(playerid, 1.000000, 218.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][0], 0.230000, 1.599998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][0], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][0], 100.000000, 0.000000);


    pTextSupport[playerid][1] = CreatePlayerTextDraw(playerid, 0.000000, 217.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][1], 0.230000, 1.899999);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][1], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][1], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][1], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][1], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][1], 102.000000, 0.000000);


    pTextSupport[playerid][2] = CreatePlayerTextDraw(playerid, 1.000000, 248.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][2], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][2], 0.230000, 1.599998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][2], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][2], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][2], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][2], 100.000000, 0.000000);


    pTextSupport[playerid][3] = CreatePlayerTextDraw(playerid, 0.000000, 247.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][3], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][3], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][3], 0.230000, 1.899999);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][3], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][3], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][3], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][3], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][3], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][3], 102.000000, 0.000000);


    pTextSupport[playerid][4] = CreatePlayerTextDraw(playerid, -9.000000, 278.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][4], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][4], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][4], 0.230000, 1.599998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][4], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][4], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][4], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][4], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][4], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][4], 100.000000, 0.000000);


    pTextSupport[playerid][5] = CreatePlayerTextDraw(playerid, 0.000000, 277.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][5], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][5], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][5], 0.230000, 1.899999);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][5], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][5], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][5], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][5], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][5], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][5], 102.000000, 0.000000);


    pTextSupport[playerid][6] = CreatePlayerTextDraw(playerid, -2.000000, 279.000000, "~w~ - ~y~Allgemeine Fragen: ~w~-");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][6], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][6], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][6], 0.230000, 1.299998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][6], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][6], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][6], 1);


    pTextSupport[playerid][7] = CreatePlayerTextDraw(playerid, 2.000000, 249.000000, "~w~- ~y~Regelverstoss: ~w~-");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][7], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][7], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][7], 0.230000, 1.299998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][7], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][7], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][7], 1);


    pTextSupport[playerid][8] = CreatePlayerTextDraw(playerid, 2.000000, 219.000000, "~w~- ~y~Bugmeldung: ~w~-");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][8], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][8], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][8], 0.230000, 1.299998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][8], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][8], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][8], 1);


    pTextSupport[playerid][9] = CreatePlayerTextDraw(playerid, 0.000000, 187.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][9], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][9], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][9], 0.230000, 1.899999);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][9], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][9], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][9], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][9], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][9], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][9], 102.000000, 0.000000);


    pTextSupport[playerid][10] = CreatePlayerTextDraw(playerid, -9.000000, 188.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][10], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][10], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][10], 0.230000, 1.599998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][10], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][10], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][10], 1);
    PlayerTextDrawUseBox(playerid, pTextSupport[playerid][10], 1);
    PlayerTextDrawBoxColor(playerid, pTextSupport[playerid][10], 100);
    PlayerTextDrawTextSize(playerid, pTextSupport[playerid][10], 100.000000, 0.000000);


    pTextSupport[playerid][11] = CreatePlayerTextDraw(playerid, 2.000000, 189.000000, "~w~- ~y~Einweisung: ~w~-");
    PlayerTextDrawBackgroundColor(playerid, pTextSupport[playerid][11], 255);
    PlayerTextDrawFont(playerid, pTextSupport[playerid][11], 1);
    PlayerTextDrawLetterSize(playerid, pTextSupport[playerid][11], 0.230000, 1.299998);
    PlayerTextDrawColor(playerid, pTextSupport[playerid][11], -1);
    PlayerTextDrawSetOutline(playerid, pTextSupport[playerid][11], 1);
    PlayerTextDrawSetProportional(playerid, pTextSupport[playerid][11], 1);

    pTextAdminDuty[playerid][0] = CreatePlayerTextDraw(playerid, 48.000000, 326.000000, "~r~Admin Duty");
    PlayerTextDrawBackgroundColor(playerid, pTextAdminDuty[playerid][0], 110);
    PlayerTextDrawFont(playerid, pTextAdminDuty[playerid][0], 3);
    PlayerTextDrawLetterSize(playerid, pTextAdminDuty[playerid][0], 0.400000, 1.000000);
    PlayerTextDrawColor(playerid, pTextAdminDuty[playerid][0], -16777066);
    PlayerTextDrawSetOutline(playerid, pTextAdminDuty[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextAdminDuty[playerid][0], 1);

    // Krankenhaus / Knast
    pTextTime[playerid][0] = CreatePlayerTextDraw(playerid, 510.000000, 369.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextTime[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextTime[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextTime[playerid][0], 0.250000, 0.899999);
    PlayerTextDrawColor(playerid, pTextTime[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextTime[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextTime[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextTime[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextTime[playerid][0], 100);
    PlayerTextDrawTextSize(playerid, pTextTime[playerid][0], 640.000000, 0.000000);


    pTextTime[playerid][1] = CreatePlayerTextDraw(playerid, 508.000000, 367.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextTime[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextTime[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextTime[playerid][1], 0.250000, 1.300000);
    PlayerTextDrawColor(playerid, pTextTime[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextTime[playerid][1], 1);
    PlayerTextDrawSetProportional(playerid, pTextTime[playerid][1], 1);
    PlayerTextDrawUseBox(playerid, pTextTime[playerid][1],1);
    PlayerTextDrawBoxColor(playerid, pTextTime[playerid][1], 100);
    PlayerTextDrawTextSize(playerid, pTextTime[playerid][1], 640.000000, 0.000000);


    pTextTime[playerid][2] = CreatePlayerTextDraw(playerid, 511.000000, 367.000000, "~r~Knast: ~w~99999 Sekunden");
    PlayerTextDrawBackgroundColor(playerid, pTextTime[playerid][2], 200);
    PlayerTextDrawFont(playerid, pTextTime[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextTime[playerid][2], 0.200000, 1.100000);
    PlayerTextDrawColor(playerid, pTextTime[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextTime[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextTime[playerid][2], 1);
    // Bus HUD

    pTextBus[playerid][0] = CreatePlayerTextDraw(playerid, 270.000000, 160.000000, "~g~Haltestelle:~w~ 15s");
    PlayerTextDrawBackgroundColor(playerid, pTextBus[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextBus[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextBus[playerid][0], 0.400000, 2.000000);
    PlayerTextDrawColor(playerid, pTextBus[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextBus[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextBus[playerid][0], 1);

    // HUD

    pTextHUD[playerid][0] = CreatePlayerTextDraw(playerid, 500.000000, 13.000000, "31.12.2014");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][0], 75);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][0], 3);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][0], 0.219999, 1.199999);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][0], 1);


    pTextHUD[playerid][1] = CreatePlayerTextDraw(playerid, 500.000000, 3.000000, "23:59");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][1], 75);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][1], 3);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][1], 0.409999, 1.299999);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][1], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][1], 1);


    pTextHUD[playerid][2] = CreatePlayerTextDraw(playerid, 554.000000, 5.000000, "Happy");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][2], 100);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][2], 3);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][2], 0.500000, 1.000000);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][2], 1);


    pTextHUD[playerid][3] = CreatePlayerTextDraw(playerid, 559.000000, 13.000000, "~y~Ages");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][3], 100);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][3], 3);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][3], 0.500000, 1.000000);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][3], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][3], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][3], 1);


    pTextHUD[playerid][4] = CreatePlayerTextDraw(playerid, 500.000000, 99.000000, " ");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][4], 75);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][4], 0);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][4], 0.310000, 1.199999);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][4], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][4], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][4], 1);


    pTextHUD[playerid][5] = CreatePlayerTextDraw(playerid, 499.000000, 82.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][5], 255);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][5], 1);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][5], 0.549998, 1.199998);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][5], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][5], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][5], 1);
    PlayerTextDrawUseBox(playerid, pTextHUD[playerid][5], 1);
    PlayerTextDrawBoxColor(playerid, pTextHUD[playerid][5], 255);
    PlayerTextDrawTextSize(playerid, pTextHUD[playerid][5], 606.000000, 0.000000);

    pTextHUD[playerid][6] = CreatePlayerTextDraw(playerid, 41.000000, 431.000000, "www.website.de");
    PlayerTextDrawBackgroundColor(playerid, pTextHUD[playerid][6], 100);
    PlayerTextDrawFont(playerid, pTextHUD[playerid][6], 1);
    PlayerTextDrawLetterSize(playerid, pTextHUD[playerid][6], 0.240000, 1.100000);
    PlayerTextDrawColor(playerid, pTextHUD[playerid][6], -1);
    PlayerTextDrawSetOutline(playerid, pTextHUD[playerid][6], 1);
    PlayerTextDrawSetProportional(playerid, pTextHUD[playerid][6], 1);



    // Speedo
    pTextSpeedo[playerid][0] = CreatePlayerTextDraw(playerid, 510.000000, 390.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][0], 0.500000, 7.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextSpeedo[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextSpeedo[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][0], 100);
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][0], 650.000000, 0.000000);


    pTextSpeedo[playerid][1] = CreatePlayerTextDraw(playerid, 508.000000, 388.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][1], 0.500000, 7.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, pTextSpeedo[playerid][1], 1);
    PlayerTextDrawUseBox(playerid, pTextSpeedo[playerid][1], 1);
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][1], 100);
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][1], 650.000000, 0.000000);


    pTextSpeedo[playerid][2] = CreatePlayerTextDraw(playerid, 551.000000, 387.000000, "-");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][2], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][2], 0.310000, 1.100000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][2], 1);


    pTextSpeedo[playerid][3] = CreatePlayerTextDraw(playerid, 511.000000, 397.000000, "- km/h");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][3], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][3], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][3], 0.260000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][3], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][3], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][3], 1);


    pTextSpeedo[playerid][4] = CreatePlayerTextDraw(playerid, 511.000000, 407.000000, "~g~Zustand:~w~ -%");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][4], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][4], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][4], 0.260000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][4], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][4], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][4], 1);


    pTextSpeedo[playerid][5] = CreatePlayerTextDraw(playerid, 511.000000, 417.000000, "~g~KM-Stand:~w~ -.-");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][5], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][5], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][5], 0.260000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][5], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][5], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][5], 1);


    pTextSpeedo[playerid][6] = CreatePlayerTextDraw(playerid, 516.000000, 431.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][6], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][6], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][6], 0.260000, 1.300000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][6], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][6], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][6], 1);
    PlayerTextDrawUseBox(playerid, pTextSpeedo[playerid][6], 1);
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][6], 255);
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][6], 616.000000, 0.000000);


    pTextSpeedo[playerid][7] = CreatePlayerTextDraw(playerid, 518.000000, 432.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][7], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][7], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][7], 0.260000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][7], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][7], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][7], 1);
    PlayerTextDrawUseBox(playerid, pTextSpeedo[playerid][7], 1);
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][7], 505290340);
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][7], 614.000000, 0.000000);


    pTextSpeedo[playerid][8] = CreatePlayerTextDraw(playerid, 518.000000, 432.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][8], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][8], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][8], 0.260000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][8], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][8], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][8], 1);
    PlayerTextDrawUseBox(playerid, pTextSpeedo[playerid][8], 1);
    PlayerTextDrawBoxColor(playerid, pTextSpeedo[playerid][8], 828254308);
    PlayerTextDrawTextSize(playerid, pTextSpeedo[playerid][8], 614.000000, 0.000000);


    pTextSpeedo[playerid][9] = CreatePlayerTextDraw(playerid, 567.000000, 431.000000, "-%");
    PlayerTextDrawAlignment(playerid, pTextSpeedo[playerid][9], 2);
    PlayerTextDrawBackgroundColor(playerid, pTextSpeedo[playerid][9], 255);
    PlayerTextDrawFont(playerid, pTextSpeedo[playerid][9], 1);
    PlayerTextDrawLetterSize(playerid, pTextSpeedo[playerid][9], 0.250000, 1.000000);
    PlayerTextDrawColor(playerid, pTextSpeedo[playerid][9], -1);
    PlayerTextDrawSetOutline(playerid, pTextSpeedo[playerid][9], 1);
    PlayerTextDrawSetProportional(playerid, pTextSpeedo[playerid][9], 1);

    // Skin Auswahl

    pTextSkinChoose[playerid][0] = CreatePlayerTextDraw(playerid, 270.000000, 350.000000, "~<~");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][0], 1.200000, 3.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextSkinChoose[playerid][0], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][0], 288.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][0], true);

    pTextSkinChoose[playerid][1] = CreatePlayerTextDraw(playerid, 362.000000, 350.000000, "~>~");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][1], 1.190000, 3.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, pTextSkinChoose[playerid][1], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][1], 382.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][1], true);

    pTextSkinChoose[playerid][2] = CreatePlayerTextDraw(playerid, 301.000000, 355.000000, "Fertig");
    PlayerTextDrawBackgroundColor(playerid, pTextSkinChoose[playerid][2], 255);
    PlayerTextDrawFont(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextSkinChoose[playerid][2], 0.500000, 2.000000);
    PlayerTextDrawColor(playerid, pTextSkinChoose[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextSkinChoose[playerid][2], 1);
    PlayerTextDrawTextSize(playerid, pTextSkinChoose[playerid][2], 352.000000, 20.000000);
    PlayerTextDrawSetSelectable(playerid, pTextSkinChoose[playerid][2], true);

    // Animation abbrechen

    pTextAnim[playerid][0] = CreatePlayerTextDraw(playerid, 228.000000, 425.000000, "LD_CHAT:badchat");
    PlayerTextDrawBackgroundColor(playerid, pTextAnim[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextAnim[playerid][0], 4);
    PlayerTextDrawLetterSize(playerid, pTextAnim[playerid][0], 0.200000, -1.000000);
    PlayerTextDrawColor(playerid, pTextAnim[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextAnim[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextAnim[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextAnim[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextAnim[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextAnim[playerid][0], 255);
    PlayerTextDrawTextSize(playerid, pTextAnim[playerid][0], 15.000000, 14.000000);


    pTextAnim[playerid][1] = CreatePlayerTextDraw(playerid, 3.000000, 434.000000, "Druecke ~r~~k~~VEHICLE_ENTER_EXIT~~w~ um die Animation abzubrechen!");
    PlayerTextDrawBackgroundColor(playerid, pTextAnim[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextAnim[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextAnim[playerid][1], 0.280000, 1.200000);
    PlayerTextDrawColor(playerid, pTextAnim[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextAnim[playerid][1], 1);
    PlayerTextDrawSetProportional(playerid, pTextAnim[playerid][1], 1);

    // Informations Kasten

    pTextInfo[playerid][0] = CreatePlayerTextDraw(playerid, 198.000000, 331.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextInfo[playerid][0], 255);
    PlayerTextDrawFont(playerid, pTextInfo[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid, pTextInfo[playerid][0], 0.490000, 9.100004);
    PlayerTextDrawColor(playerid, pTextInfo[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid, pTextInfo[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid, pTextInfo[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, pTextInfo[playerid][0], 1);
    PlayerTextDrawUseBox(playerid, pTextInfo[playerid][0], 1);
    PlayerTextDrawBoxColor(playerid, pTextInfo[playerid][0], 90);
    PlayerTextDrawTextSize(playerid, pTextInfo[playerid][0], 399.000000, 0.000000);


    pTextInfo[playerid][1] = CreatePlayerTextDraw(playerid, 200.000000, 342.000000, "_");
    PlayerTextDrawBackgroundColor(playerid, pTextInfo[playerid][1], 255);
    PlayerTextDrawFont(playerid, pTextInfo[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid, pTextInfo[playerid][1], 0.500000, 7.599999);
    PlayerTextDrawColor(playerid, pTextInfo[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid, pTextInfo[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid, pTextInfo[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, pTextInfo[playerid][1], 1);
    PlayerTextDrawUseBox(playerid, pTextInfo[playerid][1], 1);
    PlayerTextDrawBoxColor(playerid, pTextInfo[playerid][1], 90);
    PlayerTextDrawTextSize(playerid, pTextInfo[playerid][1], 397.000000, 0.000000);


    pTextInfo[playerid][2] = CreatePlayerTextDraw(playerid, 200.000000, 340.000000, " "); // Text
    PlayerTextDrawBackgroundColor(playerid, pTextInfo[playerid][2], 255);
    PlayerTextDrawFont(playerid, pTextInfo[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid, pTextInfo[playerid][2], 0.200000, 1.000000);
    PlayerTextDrawColor(playerid, pTextInfo[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid, pTextInfo[playerid][2], 1);
    PlayerTextDrawSetProportional(playerid, pTextInfo[playerid][2], 1);


    pTextInfo[playerid][3] = CreatePlayerTextDraw(playerid, 200.000000, 330.000000, " "); // Ueberschrift
    PlayerTextDrawBackgroundColor(playerid, pTextInfo[playerid][3], 255);
    PlayerTextDrawFont(playerid, pTextInfo[playerid][3], 1);
    PlayerTextDrawLetterSize(playerid, pTextInfo[playerid][3], 0.200000, 1.000000);
    PlayerTextDrawColor(playerid, pTextInfo[playerid][3], -1);
    PlayerTextDrawSetOutline(playerid, pTextInfo[playerid][3], 1);
    PlayerTextDrawSetProportional(playerid, pTextInfo[playerid][3], 1);
    }
    return 1;
    }


    // In einem Timer der jede Sekunde updated:
    else if(pTutorialSkinWait[i] == 1)
    {
    ClearPlayerChat(i, 20);
    pTutorialSkinWait[i] = 0;
    for(new xS=0;xS<MAX_SKIN_DATA;xS++)
    {
    if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
    {
    pChoosedSkin[i] = SkinData[xS][skinID];
    pChoosedID[i] = xS;
    SetPlayerSkin(i, pChoosedSkin[i]);
    break;
    }
    }
    PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
    PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
    SelectTextDraw(i, 0xA3B4C5FF);

    SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
    SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
    SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
    SetPlayerFacingAngle(i, 173.5490);
    SetPlayerInterior(i, 3);
    SetPlayerVirtualWorld(i, 2000+i);
    FreezePlayer(i);
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Buttons drückst.");
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, drücke auf den entsprechenden Button.");
    }


    // OnPlayerSpawn
    if(Spieler[playerid][pJailed] == 1)
    {
    if(Spieler[playerid][pJailType] == 0)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 264.1042,77.8588,1001.0391);
    }
    else if(Spieler[playerid][pJailType] == 1)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 263.9286,82.1553,1000.1721+1);
    }
    else if(Spieler[playerid][pJailType] == 2)
    {
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 264.5096,87.0414,1000.1336+1);
    }
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }
    else if(Spieler[playerid][pJailed] == 2)
    {
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.3108,1635.9301,993.5761);
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }
    if(Spieler[playerid][pTot] == 1)
    {
    SetPlayerPos(playerid, 1160.7430, -1323.7920, 20.6936);
    FreezePlayer(playerid);
    InterpolateCameraPos(playerid, 1204.180786, -1377.681518, 24.550359, 1202.254638, -1293.708007, 16.839622, (Spieler[playerid][pTotUnix]*1000));
    InterpolateCameraLookAt(playerid, 1199.928955, -1375.059204, 24.762796, 1198.413452, -1296.908081, 16.911756, (Spieler[playerid][pTotUnix]*1000));
    PlayerTextDrawShow(playerid, pTextTime[playerid][0]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][1]);
    PlayerTextDrawShow(playerid, pTextTime[playerid][2]);
    return 1;
    }


    // BEim Login:
    PlayerTextDrawShow(playerid, pTextHUD[playerid][0]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][1]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][3]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][6]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][2]);


    // Beim Register:
    PlayerTextDrawShow(playerid, pTextHUD[playerid][0]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][1]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][3]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][6]);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][2]);


    // Tacho:
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][8]);
    format(string, sizeof(string), "%d%", floatround(Tank/TankInProzent));
    PlayerTextDrawSetString(playerid, pTextSpeedo[playerid][9], string);
    }
    return 1;
    }


    stock ShowReportsForPlayer(playerid)
    {
    PlayerTextDrawShow(playerid, pTextSupport[playerid][0]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][1]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][2]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][3]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][4]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][5]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][6]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][7]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][8]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][9]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][10]);
    PlayerTextDrawShow(playerid, pTextSupport[playerid][11]);
    return 1;
    }


    stock HideReportsForPlayer(playerid)
    {
    PlayerTextDrawHide(playerid, pTextSupport[playerid][0]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][1]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][2]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][3]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][4]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][5]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][6]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][7]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][8]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][9]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][10]);
    PlayerTextDrawHide(playerid, pTextSupport[playerid][11]);
    return 1;
    }


    stock ShowTachoForPlayer(playerid)
    {
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][0]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][1]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][2]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][3]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][4]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][5]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][6]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][7]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][8]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][9]);
    return 1;
    }


    stock HideTachoForPlayer(playerid)
    {
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][0]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][1]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][2]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][3]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][4]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][5]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][6]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][7]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][8]);
    PlayerTextDrawHide(playerid, pTextSpeedo[playerid][9]);
    return 1;
    }


    stock ShowInfo(playerid, head[], text[])
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerTextDrawSetString(playerid, pTextInfo[playerid][2], text);
    PlayerTextDrawSetString(playerid, pTextInfo[playerid][3], head);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][0]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][1]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][2]);
    PlayerTextDrawShow(playerid, pTextInfo[playerid][3]);
    }
    return 1;
    }


    stock HideInfo(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerTextDrawHide(playerid, pTextInfo[playerid][0]);
    PlayerTextDrawHide(playerid, pTextInfo[playerid][1]);
    PlayerTextDrawHide(playerid, pTextInfo[playerid][2]);
    PlayerTextDrawHide(playerid, pTextInfo[playerid][3]);
    }
    return 1;
    }


    stock ShowBusTextDraw(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(Spieler[playerid][pLoggedIn])
    {
    new string[32];
    format(string, sizeof(string), "~b~Haltestelle: ~w~%d", Spieler[playerid][pBusTime]);
    PlayerTextDrawSetString(playerid, pTextBus[playerid][0], string);
    PlayerTextDrawShow(playerid, pTextBus[playerid][0]);
    }
    }
    return 1;
    }


    stock UpdateWantedTD(playerid)
    {
    new query[128];
    if(Spieler[playerid][pWanteds] > 0)
    {
    strdel(query, 0, sizeof(query));
    strcat(query, "~y~");
    for(new i=0;i<Spieler[playerid][pWanteds];i++)
    {
    strcat(query, "]");
    if(i == 9)strcat(query, "~n~");
    if(i == 19)break;
    }
    PlayerTextDrawSetString(playerid, pTextHUD[playerid][4], query);
    PlayerTextDrawShow(playerid, pTextHUD[playerid][4]);
    }
    else
    {
    PlayerTextDrawHide(playerid, pTextHUD[playerid][4]);
    }
    return 1;
    }


    Aber es ist komisch.
    Bei Spieler 0 wird alles angezeigt, bei Spieler 1 dann wiederum nicht ...


    palwal:
    Nein. ^^

  • Naja, eigentlich habe ich gesagt du sollst nicht alles posten, aber gut.
    Du sagst, der Tacho wird für ID 1 nicht mehr angezeigt?


    Dann ändere den Stock bitte zu:
    stock ShowTachoForPlayer(playerid)
    {
    printf("ShowTachoForPlayer für ID %d aufgerufen.", playerid);
    for(new i=0; i<10; i++) printf(" %d -> ID: %d", i, _:pTextSpeedo[playerid][i]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][0]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][1]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][2]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][3]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][4]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][5]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][6]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][7]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][8]);
    PlayerTextDrawShow(playerid, pTextSpeedo[playerid][9]);
    return 1;
    }


    Was wird geprintet, wenn dir der Tacho angezeigt werden soll?
    Teste es bitte mit ID 0 und ID 1 und poste beide Logs.

  • Komischerweise wird mir das alles jetzt angezeigt.


    Habe zwar grade keine Logs aber letztens als ich es per Hamachi getestet habe mit einem Freund wurde teilweise bei ihm keine angezeigt und bei mir.
    Also echt kein einziger TD.


    // Edit
    Okay, kleines Update. (Habe den Thread ausversehen auf erledigt gestellt)


    Hier meine Vorgehensweise:


    • Einen bereits erstellten Account einloggen. Alles klappt, spawne an meiner Fraktion.
    • Einen zweiten bereits erstellten Account einloggen mit Hilfe von Sandboxie (also 2 Spieler auf dem Server). Klappt. Alles wird angezeigt.
    • Den zweiten ausloggen und einen neuen Account erstellen. (eine "1" an seinen Namen dran gehangen.)
    • Daraufhin wurde mir kein TD mehr angezeigt.


    Das, was im Script steht:

    else if(pTutorialSkinWait[i] == 1)
    {
    ClearPlayerChat(i, 20);
    pTutorialSkinWait[i] = 0;
    for(new xS=0;xS<MAX_SKIN_DATA;xS++)
    {
    if(SkinData[xS][skinGender] == Spieler[i][pGeschlecht])
    {
    pChoosedSkin[i] = SkinData[xS][skinID];
    pChoosedID[i] = xS;
    SetPlayerSkin(i, pChoosedSkin[i]);
    break;
    }
    }
    print("Debug (0_1)");
    PlayerTextDrawShow(i, pTextSkinChoose[i][0]);
    print("Debug (0_2)");
    PlayerTextDrawShow(i, pTextSkinChoose[i][1]);
    print("Debug (0_3)");
    PlayerTextDrawShow(i, pTextSkinChoose[i][2]);
    print("Debug (0_4)");
    SelectTextDraw(i, 0xA3B4C5FF);
    print("Debug (0_5)");
    SetPlayerCameraPos(i, 198.7011, -134.6350, 1004.7740);
    SetPlayerCameraLookAt(i, 199.3376,-128.0158,1003.5152);
    SetPlayerPos(i, 199.3376,-128.0158,1003.5152);
    SetPlayerFacingAngle(i, 173.5490);
    SetPlayerInterior(i, 3);
    SetPlayerVirtualWorld(i, 2000+i);
    FreezePlayer(i);
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Bitte wähle einen Skin aus, indem du auf die Buttons drückst.");
    SendClientMessage(i, COLOR_BLUE, "INFO: "COLOR_HEX_WHITE"Wenn du fertig bist, drücke auf den entsprechenden Button.");
    }


    Ein Bild von der Console:


    Das ganze kam 2x vor weil ich ihn versucht habe per Befehl zu spawnen. (Also, ID 0 hat ID 1 gespawnt, der war ja noch online)


    Jeffry:


    Deine Hilfe ist immer gut brauchbar! :)


    // Edit


    Erneutes Update:


    Habe mich nun mal ausgeloggt.
    Erst mit ID 1 und dann mit ID 0.
    Daraufhin habe ich mich mit dem bereits erstellten Account eingeloggt (also vorher ID 0) und dort habe ich nun auch keine TextDraws mehr!


    // Edit


    Nochmal. Fehler ist nun gefunden aber wie ich den behebe immer noch nicht.


    Wenn ich mich einlogge, auslogge und nochmal einlogge werden die TDs einfach nicht geladen.


    // Edit



    [21:14:10] [join] Andrew_Miles has joined the server (0:127.0.0.1)
    [21:14:12] Debug (1_1)
    [21:14:12] Debug (1_2)
    [21:14:12] Debug (1_3)
    [21:14:12] Debug (1_4)
    [21:14:12] Debug (1_5)
    [21:14:12] Debug (1_6)
    [21:14:12] Debug (1_7)
    [21:14:33] ShowTachoForPlayer für ID 0 aufgerufen.
    [21:14:33] 0 -> ID: 25
    [21:14:33] 1 -> ID: 26
    [21:14:33] 2 -> ID: 27
    [21:14:33] 3 -> ID: 28
    [21:14:33] 4 -> ID: 29
    [21:14:33] 5 -> ID: 30
    [21:14:33] 6 -> ID: 31
    [21:14:33] 7 -> ID: 32
    [21:14:33] 8 -> ID: 33
    [21:14:33] 9 -> ID: 34
    [21:14:36] [part] Andrew_Miles has left the server (0:1)
    [21:15:01] Incoming connection: 127.0.0.1:52872
    [21:15:01] [join] Andrew_Miles has joined the server (0:127.0.0.1)
    [21:16:54] Debug (1_1)
    [21:16:54] Debug (1_2)
    [21:16:54] Debug (1_3)
    [21:16:54] Debug (1_4)
    [21:16:54] Debug (1_5)
    [21:16:54] Debug (1_6)
    [21:16:54] Debug (1_7)
    [21:17:09] ShowTachoForPlayer für ID 0 aufgerufen.
    [21:17:09] 0 -> ID: 25
    [21:17:09] 1 -> ID: 26
    [21:17:09] 2 -> ID: 27
    [21:17:09] 3 -> ID: 28
    [21:17:09] 4 -> ID: 29
    [21:17:09] 5 -> ID: 30
    [21:17:09] 6 -> ID: 31
    [21:17:09] 7 -> ID: 32
    [21:17:09] 8 -> ID: 33
    [21:17:09] 9 -> ID: 34


    Jeffry:

    4 Mal editiert, zuletzt von hav0K~ ()

  • Das sieht mir ganz danach aus als wird da etwas nicht richtig zurück gesetzt wenn du den Server verlässt.


    Was passiert denn, wenn du dich einloggst, dann ausloggst, dann dem Server schließt und wieder öffnest, und dich dann wieder einloggst? Geht es dann?
    Wenn ja, dann solltest du alle Werte prüfen, die du beim Connect und Login hast, die mit den Textdraws in irgend einer Weise zu tun haben.
    Solche Probleme sind extrem schwer zu finden, wenn man nur Code hat, daher musst du viel selbst suchen.


    Wenn du das ganze dann debuggt hast, komplett, dann muss irgendwann bei den beiden Login Vorgängen ein unterschiedlicher Werte geprintet werden.


    Das gute ist, dass du es immer wieder selbst testen kannst.


    Am besten du machst das mit dem Debug mal und postest dann die Ergebnisse.





    Edit: Post unten:
    hav0K~: Das ging ja super schnell! Sehr gut gemacht! :thumbup:
    Ja, das Debugging ist wirklich was feines.

    3HZXdYd.png

    2 Mal editiert, zuletzt von Jeffry ()

  • Fehler gefunden.


    ->


    pPhoning[playerid] = 0;
    pPayGuthaben[pCurrentCall[playerid]] = 0; // Wieso auch immer diese Variable.. ^^
    pPayGuthaben[playerid] = 0;
    pPersoWait[playerid] = 0;
    pCurrentCall[playerid] = -1;


    Danke Jeffry:
    Debugging wird mir wohl zukünftig weiter den Arsch retten. :D