Jump to content
  • 0

Problema /skins.



Salut, am aceasta problema la comanda [/skins]. Daca am skin-uri, si sterg din ele, se sterg e ok, cand dau pe ele imi apare ca nu am skin pe slot, dar, problema este ca tot imi apare de ex skin 20 unequipped si nu inteleg de ce deoarece eu am facut sa imi puna none daca sterg un skin. Va rog frumos daca poate sa ma ajute cineva, chiar nu ii dau de cap.


    switch(dialogid) {
        case DIALOG_SKIN: {
            if(!response) return 1;
            new id = listitem;
            if(PlayerInfo[playerid][pSkins][id] == -1) return SCM(playerid, COLOR_LGREEN, "Nu ai un skin pe acest slot.");
            ShowPlayerDialog(playerid, DIALOG_SKIN+1, DIALOG_STYLE_MSGBOX, "My Skins", "Select the action you desire.", "Equip", "Delete");
            SetPVarInt(playerid, "skin", id);

        case DIALOG_SKIN+1: {
            new id = PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")];
            switch(response) {
                case 0: {
                    if(GetPVarInt(playerid, "skin") == 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sterge acest skin.");
                    if(GetPlayerSkin(playerid) == id) {
                        PlayerInfo[playerid][pChar] = 250;
                        SetPlayerSkinEx(playerid, 250);
                        UpdateVar(playerid, "CChar", id);
                    PlayerInfo[playerid][pSkins][GetPVarInt(playerid, "skin")] = -1;
                    SCM(playerid, COLOR_YELLOW, "Skin deleted!");
                case 1: {
                    PlayerInfo[playerid][pChar] = id;
                    SetPlayerSkinEx(playerid, id);
                    UpdateVar(playerid, "CChar", id);
                    SCM(playerid, COLOR_YELLOW, "Skin equiped!");
            DeletePVar(playerid, "skin");



CMD:skins(playerid, params[]) {
    if(PlayerInfo[playerid][pMember] != 0) return SCM(playerid, COLOR_LGREEN, "Nu poti sa folosesti aceasta comanda deoarece faci parte dintr-o factiune.");
    new szDialog[512], string[128];
    strcat(szDialog, "#\tSkin ID\tStatus\n");
    for(new i; i < 10; i++) {
        if(PlayerInfo[playerid][pSkins][i] == GetPlayerSkin(playerid)) format(string, sizeof(string), "%d\t%d\t{00FF00}Equipped\n", i+1, PlayerInfo[playerid][pSkins][i]);
        else if(PlayerInfo[playerid][pSkins][i] != -1) format(string, sizeof(string), "%d\t%d\t{B22222}Unequipped\n", i+1, PlayerInfo[playerid][pSkins][i]);
        else if(PlayerInfo[playerid][pSkins][i] == 1) format(string, sizeof(string), "%d\tnone\t{FF8C00}Free\n", i+1, PlayerInfo[playerid][pSkins][i]);
        strcat(szDialog, string);
    ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_TABLIST_HEADERS, "My Skins", szDialog, "Select", "Cancel");
    return 1;



Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.