Skinauswahl defekt!

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,


    ich hab ein kleines problem mit meiner Skinauswahl..
    Wenn man in die Skinauswahl kommt wird nur der CJ Skin angezeigt obwohl ich den nicht mal im Script drinhabe...



    AddPlayerClass(1,0,0,0,0,0,0,0,0,0,0); // 5
    AddPlayerClass(2,0,0,0,0,0,0,0,0,0,0); // 6
    AddPlayerClass(3,0,0,0,0,0,0,0,0,0,0); // 7
    AddPlayerClass(4,0,0,0,0,0,0,0,0,0,0); // 8
    AddPlayerClass(5,0,0,0,0,0,0,0,0,0,0); // 9
    AddPlayerClass(6,0,0,0,0,0,0,0,0,0,0); // 10
    AddPlayerClass(7,0,0,0,0,0,0,0,0,0,0); // 11
    AddPlayerClass(8,0,0,0,0,0,0,0,0,0,0); // 12
    AddPlayerClass(9,0,0,0,0,0,0,0,0,0,0); // 13
    AddPlayerClass(10,0,0,0,0,0,0,0,0,0,0); // 14
    AddPlayerClass(11,0,0,0,0,0,0,0,0,0,0); // 15
    AddPlayerClass(12,0,0,0,0,0,0,0,0,0,0); // 16
    AddPlayerClass(13,0,0,0,0,0,0,0,0,0,0); // 17
    AddPlayerClass(14,0,0,0,0,0,0,0,0,0,0); // 18
    AddPlayerClass(15,0,0,0,0,0,0,0,0,0,0); // 19
    AddPlayerClass(17,0,0,0,0,0,0,0,0,0,0); // 20
    AddPlayerClass(18,0,0,0,0,0,0,0,0,0,0); // 21
    AddPlayerClass(19,0,0,0,0,0,0,0,0,0,0); // 22
    AddPlayerClass(20,0,0,0,0,0,0,0,0,0,0); // 23
    AddPlayerClass(21,0,0,0,0,0,0,0,0,0,0); // 24
    AddPlayerClass(22,0,0,0,0,0,0,0,0,0,0); // 25
    AddPlayerClass(23,0,0,0,0,0,0,0,0,0,0); // 26
    AddPlayerClass(24,0,0,0,0,0,0,0,0,0,0); // 27
    AddPlayerClass(25,0,0,0,0,0,0,0,0,0,0); // 28
    AddPlayerClass(26,0,0,0,0,0,0,0,0,0,0); // 29
    AddPlayerClass(27,0,0,0,0,0,0,0,0,0,0); // 30
    AddPlayerClass(28,0,0,0,0,0,0,0,0,0,0); // 31
    AddPlayerClass(29,0,0,0,0,0,0,0,0,0,0); // 32
    AddPlayerClass(30,0,0,0,0,0,0,0,0,0,0); // 33
    AddPlayerClass(31,0,0,0,0,0,0,0,0,0,0); // 34
    AddPlayerClass(32,0,0,0,0,0,0,0,0,0,0); // 35
    AddPlayerClass(33,0,0,0,0,0,0,0,0,0,0); // 36
    AddPlayerClass(34,0,0,0,0,0,0,0,0,0,0); // 37
    AddPlayerClass(35,0,0,0,0,0,0,0,0,0,0); // 38
    AddPlayerClass(36,0,0,0,0,0,0,0,0,0,0); // 39
    AddPlayerClass(37,0,0,0,0,0,0,0,0,0,0); // 40
    AddPlayerClass(38,0,0,0,0,0,0,0,0,0,0); // 41
    AddPlayerClass(39,0,0,0,0,0,0,0,0,0,0); // 42
    AddPlayerClass(40,0,0,0,0,0,0,0,0,0,0); // 43


    So habe ich alle Skins unter OnGamemodInit eingetrangen.. ( Ist nur ein kleiner ausschnitt... )


    und hier OnPlayerRequestClass..:
    public OnPlayerRequestClass(playerid,classid)
    {
    PlayerPlaySound(playerid, 1188, 0.0, 0.0, 0.0);
    SetPlayerPos(playerid, 869.8935,-26.2314,63.8820);
    SetPlayerCameraPos(playerid, 868.0054,-30.4584,63.1953);
    SetPlayerCameraLookAt(playerid, 869.8935,-26.2314,63.8820);
    SetPlayerFacingAngle(playerid, 150);
    switch(classid)
    {
    case 225,226,227,228,229,230,231,232,233: PlayerInfo[playerid][pFaction] = 1;
    case 234,235: PlayerInfo[playerid][pFaction] = 2;
    case 236,237,238,239,240: PlayerInfo[playerid][pFaction] = 3;
    case 241: PlayerInfo[playerid][pFaction] = 4;
    case 242,243,244: PlayerInfo[playerid][pFaction] = 5;
    case 245,246,247,248: PlayerInfo[playerid][pFaction] = 6;
    case 249,250,251: PlayerInfo[playerid][pFaction] = 7;
    case 252,253,254: PlayerInfo[playerid][pFaction] = 8;
    case 255,256,257: PlayerInfo[playerid][pFaction] = 9;
    case 258,259,260,261,262,263,264,265,266: PlayerInfo[playerid][pFaction] = 10;
    case 1..224: PlayerInfo[playerid][pFaction] = 11;
    case 267,268,269,270,271: PlayerInfo[playerid][pFaction] = 12;
    case 272,273,274,275,276: PlayerInfo[playerid][pFaction] = 13;
    case 277,278,279,280,281,282: PlayerInfo[playerid][pFaction] = 14;
    case 283,284,285,286: PlayerInfo[playerid][pFaction] = 15;
    case 287,288,289: PlayerInfo[playerid][pFaction] = 16;
    case 290,291,292: PlayerInfo[playerid][pFaction] = 17;
    case 293,294,295: PlayerInfo[playerid][pFaction] = 18;
    default: PlayerInfo[playerid][pFaction] = 0;
    }
    return 1;
    }


    Ich habe kiene ahnung woran es liegt.. ich habs auch schon mit vielen anderen möglichkeiten unter OnPlayerRequestClass veruscht!
    Bitte um hilfe



    LG

    4 Mal editiert, zuletzt von Dev ()

  • emm wie wäre es mal mit..


    AddPlayerClass(13,X Koordinate,Y Koordinate,Z Koordinate,0,0,0,0,0,0);


    Also die Koordinaten wo er spawnen soll ;D

  • Du musst die X,Y,Z Koords angeben, die sollten mit den Koords von der Camera Position und der Richtung der Camera zusammen arbeiten , sprich die Kamer soll auf den Ort kukken wo der Spieler dann steht.
    lg