Will einfach nicht gehen

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 com,



    Ich hab mal ein skinshop erstellt und wenn ich jetzt in binco rein gehe und /clothes schreibe zeit er ihn denn spieler an und mann kann mir shift eig. die skin wechseln. Aber es funk. einfach nicht bei mir warum ??


    hier ist das mit den shift:



    if(newkeys == KEY_JUMP)
    {
    if(ChooseSkin[playerid] == 1)
    {
    new Skin = GetPlayerSkin(playerid);
    //Männlichs
    if(Spieler[playerid][Team] == 0)
    {
    if(Skin == ChooseableSkins[0])
    {
    SetPlayerSkin(playerid, ChooseableSkins[1]);
    }
    else if(Skin == ChooseableSkins[1])
    {
    SetPlayerSkin(playerid, ChooseableSkins[2]);
    }
    else if(Skin == ChooseableSkins[2])
    {
    SetPlayerSkin(playerid, ChooseableSkins[3]);
    }
    else if(Skin == ChooseableSkins[3])
    {
    SetPlayerSkin(playerid, ChooseableSkins[4]);
    }
    else if(Skin == ChooseableSkins[4])
    {
    SetPlayerSkin(playerid, ChooseableSkins[5]);
    }
    else if(Skin == ChooseableSkins[5])
    {
    SetPlayerSkin(playerid, ChooseableSkins[6]);
    }
    else if(Skin == ChooseableSkins[6])
    {
    SetPlayerSkin(playerid, ChooseableSkins[7]);
    }
    else if(Skin == ChooseableSkins[7])
    {
    SetPlayerSkin(playerid, ChooseableSkins[8]);
    }
    else if(Skin == ChooseableSkins[8])
    {
    SetPlayerSkin(playerid, ChooseableSkins[9]);
    }
    else if(Skin == ChooseableSkins[9])
    {
    SetPlayerSkin(playerid, ChooseableSkins[10]);
    }
    else if(Skin == ChooseableSkins[10])
    {
    SetPlayerSkin(playerid, ChooseableSkins[11]);
    }
    else if(Skin == ChooseableSkins[11])
    {
    SetPlayerSkin(playerid, ChooseableSkins[12]);
    }
    else if(Skin == ChooseableSkins[12])
    {
    SetPlayerSkin(playerid, ChooseableSkins[13]);
    }
    else if(Skin == ChooseableSkins[13])
    {
    SetPlayerSkin(playerid, ChooseableSkins[14]);
    }
    else if(Skin == ChooseableSkins[14])
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    //Weiblich
    else if(Skin == ChooseableSkinsWoman[0])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
    }
    else if(Skin == ChooseableSkinsWoman[1])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
    }
    else if(Skin == ChooseableSkinsWoman[2])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
    }
    else if(Skin == ChooseableSkinsWoman[3])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
    }
    else if(Skin == ChooseableSkinsWoman[4])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
    }
    else if(Skin == ChooseableSkinsWoman[5])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
    }
    else if(Skin == ChooseableSkinsWoman[6])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
    }
    else if(Skin == ChooseableSkinsWoman[7])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
    }
    else if(Skin == ChooseableSkinsWoman[8])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
    }
    else if(Skin == ChooseableSkinsWoman[9])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
    }
    else if(Skin == ChooseableSkinsWoman[10])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
    }
    else if(Skin == ChooseableSkinsWoman[11])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
    }
    else if(Skin == ChooseableSkinsWoman[12])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
    }
    else if(Skin == ChooseableSkinsWoman[13])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    }
    }



    MFG

  • if(newkeys == KEY_JUMP)
    {
    if(ChooseSkin[playerid] == 1)
    {
    new Skin = GetPlayerSkin(playerid);
    //Männlichs
    if(Spieler[playerid][Team] == 0)
    {
    if(Skin == ChooseableSkins[0])
    {
    SetPlayerSkin(playerid, ChooseableSkins[1]);
    }
    else if(Skin == ChooseableSkins[1])
    {
    SetPlayerSkin(playerid, ChooseableSkins[2]);
    }
    else if(Skin == ChooseableSkins[2])
    {
    SetPlayerSkin(playerid, ChooseableSkins[3]);
    }
    else if(Skin == ChooseableSkins[3])
    {
    SetPlayerSkin(playerid, ChooseableSkins[4]);
    }
    else if(Skin == ChooseableSkins[4])
    {
    SetPlayerSkin(playerid, ChooseableSkins[5]);
    }
    else if(Skin == ChooseableSkins[5])
    {
    SetPlayerSkin(playerid, ChooseableSkins[6]);
    }
    else if(Skin == ChooseableSkins[6])
    {
    SetPlayerSkin(playerid, ChooseableSkins[7]);
    }
    else if(Skin == ChooseableSkins[7])
    {
    SetPlayerSkin(playerid, ChooseableSkins[8]);
    }
    else if(Skin == ChooseableSkins[8])
    {
    SetPlayerSkin(playerid, ChooseableSkins[9]);
    }
    else if(Skin == ChooseableSkins[9])
    {
    SetPlayerSkin(playerid, ChooseableSkins[10]);
    }
    else if(Skin == ChooseableSkins[10])
    {
    SetPlayerSkin(playerid, ChooseableSkins[11]);
    }
    else if(Skin == ChooseableSkins[11])
    {
    SetPlayerSkin(playerid, ChooseableSkins[12]);
    }
    else if(Skin == ChooseableSkins[12])
    {
    SetPlayerSkin(playerid, ChooseableSkins[13]);
    }
    else if(Skin == ChooseableSkins[13])
    {
    SetPlayerSkin(playerid, ChooseableSkins[14]);
    }
    else if(Skin == ChooseableSkins[14])
    {
    SetPlayerSkin(playerid, ChooseableSkins[0]);
    }
    //Weiblich
    else if(Skin == ChooseableSkinsWoman[0])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[1]);
    }
    else if(Skin == ChooseableSkinsWoman[1])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[2]);
    }
    else if(Skin == ChooseableSkinsWoman[2])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[3]);
    }
    else if(Skin == ChooseableSkinsWoman[3])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[4]);
    }
    else if(Skin == ChooseableSkinsWoman[4])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[5]);
    }
    else if(Skin == ChooseableSkinsWoman[5])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[6]);
    }
    else if(Skin == ChooseableSkinsWoman[6])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[7]);
    }
    else if(Skin == ChooseableSkinsWoman[7])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[8]);
    }
    else if(Skin == ChooseableSkinsWoman[8])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[9]);
    }
    else if(Skin == ChooseableSkinsWoman[9])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[10]);
    }
    else if(Skin == ChooseableSkinsWoman[10])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[11]);
    }
    else if(Skin == ChooseableSkinsWoman[11])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[12]);
    }
    else if(Skin == ChooseableSkinsWoman[12])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[13]);
    }
    else if(Skin == ChooseableSkinsWoman[13])
    {
    SetPlayerSkin(playerid, ChooseableSkinsWoman[0]);
    }
    }
    }
    }