mSelection
#1

Hey
I got a kind of problem when typing the command /buyclothes by using the function ShowModelSelectionMenu(playerid, skinlist, "Select Skin");

but when i click the skin i chose nothing happens, like it stuck

actually im new to this mSelection so please help me out

Reply
#2

Howdy mate, do you have the code which responds to the click? If you look into the mSelection thread you'll see an example script of it, and this is the response link on that thread:

pawn Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == skinlist)
    {
        if(response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
            SetPlayerSkin(playerid, modelid);
        }
        else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
        return 1;
    }
    return 1;
}
Reply
#3

Yes got it already

Quote:

if(listid == hsfskinlist)
{
if(response)
{
new string[128];
PlayerInfo[playerid][pModel] = modelid;
SetPlayerSkin(playerid, modelid);
format(string, sizeof(string), "* %s reaches their hands and put some clothes on.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
// HideModelSelectionMenu(playerid)
return 1;
}

Reply
#4

Never mind solved, a filterscript has been bothered it to click
Reply
#5

how did you solved it ? plz
Reply
#6

Quote:
Originally Posted by BadJih
Посмотреть сообщение
how did you solved it ? plz
Bro,this post is from 2014....I don't think he will answer telling you how he fixed it!!
Reply
#7

Quote:
Originally Posted by ArianGubetini
Посмотреть сообщение
Bro,this post is from 2014....I don't think he will answer telling you how he fixed it!!
ok lol you can help me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)