Skin Speichert Falsch

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 Leute.



    Habe Da ein kleines Problem die skins werden falsch gespcheichert der nimt den ersten skin und speichert den Letzten Was ist hier falsch Kann Mir da einer Helfen Bitte






    new skin[21];
    skin[0] = 4; {PlayerInfo[playerid][pModel] = 4;}
    skin[1] = 5; {PlayerInfo[playerid][pModel] = 5;}
    skin[2] = 19; {PlayerInfo[playerid][pModel] = 19;}
    skin[3] = 20; {PlayerInfo[playerid][pModel] = 20;}
    skin[4] = 21; {PlayerInfo[playerid][pModel] = 21;}
    skin[5] = 101; {PlayerInfo[playerid][pModel] = 101;}
    skin[6] = 102; {PlayerInfo[playerid][pModel] = 102;}
    skin[7] = 103; {PlayerInfo[playerid][pModel] = 103;}
    skin[8] = 105; {PlayerInfo[playerid][pModel] = 105;}
    skin[9] = 106; {PlayerInfo[playerid][pModel] = 106;}
    skin[10] = 127; {PlayerInfo[playerid][pModel] = 127;}
    skin[11] = 149; {PlayerInfo[playerid][pModel] = 149;}
    skin[12] = 163; {PlayerInfo[playerid][pModel] = 163;}
    skin[13] = 164; {PlayerInfo[playerid][pModel] = 164;}
    skin[14] = 165; {PlayerInfo[playerid][pModel] = 165;}
    skin[15] = 166; {PlayerInfo[playerid][pModel] = 166;}
    skin[16] = 187; {PlayerInfo[playerid][pModel] = 187;}
    skin[17] = 269; {PlayerInfo[playerid][pModel] = 269;}
    skin[18] = 270; {PlayerInfo[playerid][pModel] = 270;}
    skin[19] = 271; {PlayerInfo[playerid][pModel] = 271;}
    skin[20] = 293; {PlayerInfo[playerid][pModel] = 293;}
    ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste);


    Bitte um Hilfe

  • also er soll das nach der Regestrirung Speichen ich wehle den skin und es passirt aber speichen tut der den letztn skin der da stehet


    if(extraid == Skin_Liste)
    {
    if(response==0)
    {
    new skin[21];
    skin[0] = 4; {PlayerInfo[playerid][pModel] = 4;}
    skin[1] = 5; {PlayerInfo[playerid][pModel] = 5;}
    skin[2] = 19; {PlayerInfo[playerid][pModel] = 19;}
    skin[3] = 20; {PlayerInfo[playerid][pModel] = 20;}
    skin[4] = 21; {PlayerInfo[playerid][pModel] = 21;}
    skin[5] = 101; {PlayerInfo[playerid][pModel] = 101;}
    skin[6] = 102; {PlayerInfo[playerid][pModel] = 102;}
    skin[7] = 103; {PlayerInfo[playerid][pModel] = 103;}
    skin[8] = 105; {PlayerInfo[playerid][pModel] = 105;}
    skin[9] = 106; {PlayerInfo[playerid][pModel] = 106;}
    skin[10] = 127; {PlayerInfo[playerid][pModel] = 127;}
    skin[11] = 149; {PlayerInfo[playerid][pModel] = 149;}
    skin[12] = 163; {PlayerInfo[playerid][pModel] = 163;}
    skin[13] = 164; {PlayerInfo[playerid][pModel] = 164;}
    skin[14] = 165; {PlayerInfo[playerid][pModel] = 165;}
    skin[15] = 166; {PlayerInfo[playerid][pModel] = 166;}
    skin[16] = 187; {PlayerInfo[playerid][pModel] = 187;}
    skin[17] = 269; {PlayerInfo[playerid][pModel] = 269;}
    skin[18] = 270; {PlayerInfo[playerid][pModel] = 270;}
    skin[19] = 271; {PlayerInfo[playerid][pModel] = 271;}
    skin[20] = 293; {PlayerInfo[playerid][pModel] = 293;}
    ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste);
    }
    if(response==1)
    {
    Skinchange[playerid] = 0;
    SendClientMessage(playerid, GRUEN, "Skin erfolgreich ausgewählt!");
    Skin[playerid] = modelid;
    SetPlayerSkin(playerid, modelid);


    PlayerTextDrawDestroy(playerid, Textdraw[playerid][6]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][7]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][8]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][9]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][10]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][11]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][12]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][13]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][14]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][15]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][16]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][17]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][18]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][19]);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-691.9375,939.5940,13.6328);
    SetPlayerFacingAngle(playerid,263.5031);
    SetPlayerCameraPos(playerid,-687.0352,939.7754,13.6328);
    SetPlayerCameraLookAt(playerid,-691.9375,939.5940,13.6328);

  • also noch mall wen ich mich Regestrire kommt alles gans normal dan kommt der skin aus wahl Tabele ich wehle mit der maus ein aus und der skin kommt auch im spiel wenn ich mich aus loge und wieder einloge kommt der letzte skin der auf der liste steht 293 komm dan ob wohl ich 19 Gewählt habe

  • Okay, dein Code ist immer noch komisch


    Mach es so
    if(extraid == Skin_Liste)
    {
    if(response==0)
    {
    new skin[21];
    skin[0] = 4; {PlayerInfo[playerid][pModel] = 4;}
    skin[1] = 5; {PlayerInfo[playerid][pModel] = 5;}
    skin[2] = 19; {PlayerInfo[playerid][pModel] = 19;}
    skin[3] = 20; {PlayerInfo[playerid][pModel] = 20;}
    skin[4] = 21; {PlayerInfo[playerid][pModel] = 21;}
    skin[5] = 101; {PlayerInfo[playerid][pModel] = 101;}
    skin[6] = 102; {PlayerInfo[playerid][pModel] = 102;}
    skin[7] = 103; {PlayerInfo[playerid][pModel] = 103;}
    skin[8] = 105; {PlayerInfo[playerid][pModel] = 105;}
    skin[9] = 106; {PlayerInfo[playerid][pModel] = 106;}
    skin[10] = 127; {PlayerInfo[playerid][pModel] = 127;}
    skin[11] = 149; {PlayerInfo[playerid][pModel] = 149;}
    skin[12] = 163; {PlayerInfo[playerid][pModel] = 163;}
    skin[13] = 164; {PlayerInfo[playerid][pModel] = 164;}
    skin[14] = 165; {PlayerInfo[playerid][pModel] = 165;}
    skin[15] = 166; {PlayerInfo[playerid][pModel] = 166;}
    skin[16] = 187; {PlayerInfo[playerid][pModel] = 187;}
    skin[17] = 269; {PlayerInfo[playerid][pModel] = 269;}
    skin[18] = 270; {PlayerInfo[playerid][pModel] = 270;}
    skin[19] = 271; {PlayerInfo[playerid][pModel] = 271;}
    skin[20] = 293; {PlayerInfo[playerid][pModel] = 293;}
    ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste);
    }
    if(response==1)
    {
    Skinchange[playerid] = 0;
    SendClientMessage(playerid, GRUEN, "Skin erfolgreich ausgewählt!");
    Skin[playerid] = modelid;
    SetPlayerSkin(playerid, modelid);
    PlayerInfo[playerid][pModel] = modelid;//Das ist wichtig


    PlayerTextDrawDestroy(playerid, Textdraw[playerid][6]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][7]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][8]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][9]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][10]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][11]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][12]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][13]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][14]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][15]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][16]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][17]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][18]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][19]);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-691.9375,939.5940,13.6328);
    SetPlayerFacingAngle(playerid,263.5031);
    SetPlayerCameraPos(playerid,-687.0352,939.7754,13.6328);
    SetPlayerCameraLookAt(playerid,-691.9375,939.5940,13.6328);