Skinchange mit Texdraws funktioniert nicht

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 ein Skinchange mit TDs gescriptet, aber das funzt nicht, wird nicht gespeichert und auch nicht gesetzt...



    if(clickedid == PfeilL[playerid])
    {
    if(IsInShop[playerid] == 1)
    {
    sccount[playerid]--;
    if(sccount[playerid] == -1)
    {
    sccount[playerid] = TotalSkins;
    }
    SetPlayerSkin(playerid, ZiviSkins[sccount[playerid]]);
    TextdrawActive[playerid] = 1;
    }
    }
    if(clickedid == PfeilR[playerid])
    {
    if(IsInShop[playerid] == 1)
    {
    sccount[playerid]++;
    if(sccount[playerid] > TotalSkins)
    {
    sccount[playerid] = 0;
    }
    SetPlayerSkin(playerid, ZiviSkins[sccount[playerid]]);
    TextdrawActive[playerid] = 1;
    }
    }
    if(clickedid == Speichern[playerid])
    {
    PlayerPlaySound(playerid, 1139, 181.7410,-87.4888,1002.023);
    ChangeSkin[playerid] = ZiviSkins[sccount[playerid]];


    TextDrawHideForPlayer(playerid, PfeilL[playerid]);
    TextDrawHideForPlayer(playerid, PfeilR[playerid]);
    TextDrawHideForPlayer(playerid, Speichern[playerid]);
    TextDrawHideForPlayer(playerid, Abbrechen[playerid]);
    TextDrawDestroy(PfeilL[playerid]);
    TextDrawDestroy(PfeilR[playerid]);
    TextDrawDestroy(Speichern[playerid]);
    TextDrawDestroy(Abbrechen[playerid]);


    TextdrawActive[playerid] = 0;
    HasBoughtNewSkin[playerid] = 1;
    SetPlayerSkin(playerid, ZiviSkins[sccount[playerid]]);


    if(IsBeamter(playerid))
    {
    pInfo[playerid][Skin2] = ZiviSkins[sccount[playerid]];
    }
    if(!IsBeamter(playerid))
    {
    pInfo[playerid][Skin] = ZiviSkins[sccount[playerid]];
    }
    GameTextForPlayer(playerid, " ", 10, 6);
    SetPlayerInterior(playerid, LastInterior[playerid]);
    SetPlayerPos(playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]);
    SetPlayerFacingAngle(playerid, LastPos[playerid][3]);
    TextdrawActive[playerid] = 0;
    SetPlayerVirtualWorld(playerid, LastVW[playerid]);
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    IsInShop[playerid] = 0;
    sccount[playerid] = 0;
    }
    if(clickedid == Abbrechen[playerid])
    {
    GameTextForPlayer(playerid, " ", 10, 6);
    SetPlayerInterior(playerid, LastInterior[playerid]);
    SetPlayerPos(playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]);
    SetPlayerFacingAngle(playerid, LastPos[playerid][3]);


    TextDrawHideForPlayer(playerid, PfeilL[playerid]);
    TextDrawHideForPlayer(playerid, PfeilR[playerid]);
    TextDrawHideForPlayer(playerid, Speichern[playerid]);
    TextDrawHideForPlayer(playerid, Abbrechen[playerid]);
    TextDrawDestroy(PfeilL[playerid]);
    TextDrawDestroy(PfeilR[playerid]);
    TextDrawDestroy(Speichern[playerid]);
    TextDrawDestroy(Abbrechen[playerid]);
    CancelSelectTextDraw(playerid);


    TextdrawActive[playerid] = 0;
    SetPlayerVirtualWorld(playerid, LastVW[playerid]);
    if(HasBoughtNewSkin[playerid] == 0)
    {
    SetPlayerSkin(playerid, LastSkin[playerid]);
    }
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    IsInShop[playerid] = 0;
    sccount[playerid] = 0;
    }

    __________________________________________


    Scripter & Programmierer im Ruhestand

    Derzeitiges Projekt:
    __________________________________________

    3 Mal editiert, zuletzt von [LoG]Freakynight () aus folgendem Grund: push at 2weeks