Help on mSelection!!
#1

Hi im using /buyclothes and when the selection menu of skins appears i cant click on any skin or escpe the menu, either go next on the menu or previous.


I have mSelection included in the script and OnPlayerModelSelection stuff.
Also this skinlist = LoadModelSelectionMenu("skins.txt"); under OnGameModeInit.
Samp 0.3zR1, Include latest version...

Why is this happening, please help?

pawn Код:
CMD:buyclothes(playerid, params[])
{
    for(new biz = 0; biz < MAX_BIZ; biz++)
    {
        if(IsPlayerInRangeOfPoint(playerid, 100, BizInfo[biz][IXCoord], BizInfo[biz][IYCoord], BizInfo[biz][IZCoord]) && GetPlayerVirtualWorld(playerid) == BizInfo[biz][VW])
        {
            if(BizInfo[biz][Genre] == 3)
            {
                ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
                if(PlayerInfo[playerid][pMoney] < 500) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't afford these clothes!");
                BizIDS[playerid] = biz;
            }
            else
            {
                SendClientMessageEx( playerid, COLOR_WHITE, "  You are not in a Clothing Shop!" );
            }
        }
    }
    return 1;
}
pawn Код:
if(listid == skinlist)
    {
        if(response)
        {
            if(GetPVarInt(playerid, "freeSkin") == 1)
            {
                PlayerInfo[playerid][pModel] = modelid;
                SetPlayerSkin(playerid, modelid);
                SetPVarInt(playerid, "freeSkin", 0);
            }
            else
            {
                if(PlayerInfo[playerid][pMoney] < 500) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can't afford these clothes!");
                GameTextForPlayer(playerid, "~g~Skin purchased! ~n~ ~r~- $500", 2000, 1);
                GiveZexzMoney(playerid, -500);
                BizInfo[BizIDS[playerid]][Till] += 500;
                PlayerInfo[playerid][pModel] = modelid;
                SetPlayerSkin(playerid, modelid);
                format(string, sizeof(string), "* %s has bought new clothes for $500.", GetPlayerNameEx(playerid));
                SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
            }
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
    }
    return 1;
}
Reply
#2

hmm use a dialog instead and see what happens?
Reply
#3

Quote:
Originally Posted by Timeless
Посмотреть сообщение
hmm use a dialog instead and see what happens?
I want to use the mSelection functions man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)