SA-MP Forums Archive
mSelection problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mSelection problems (/showthread.php?tid=614215)



mSelection problems - ChristofferHoffmann - 05.08.2016

Okay. I've set a /clothes command and I it does open the mSelection menu but nothing happens from there. I cannot go to the next page, press any of the skins. Simply nothing works. All of the code is there, compiles fine and the skins.txt is in my scriptfiles.


Код:
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;
}
Код:
new skinList = mS_INVALID_LISTID;
Код:
skinList = LoadModelSelectionMenu("skins.txt");
Код:
dcmd_clothes(playerid, params[])
{
	ShowModelSelectionMenu(playerid, skinList, "Select Skin");
	return 1;
}
Everything for the code to work should be right there, but it simply doesn't respond at all when I click. I don't have any other filterscripts that use textdraws I believe, so I don't think it can interfere.