customskin wont show dialog.
#1

I'm using mSelection to show my dialog for my skins. I have 0.3.8 server package. I have the folder set correctly for the skin ids. Artwork is enabled, and when players join the server the skins download. The problem is the dialog will not pop up.

Quote:
Код:
new customskins;

public OnGameModeInit()
{
customskins = LoadModelSelectionMenu("data/customskins.txt");
return 1;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
	if(listid == customskins)
	{
	    if(response)
	    {
		    SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	if(listid == skinlist)
	{
	    if(response)
	    {
	    	SetPlayerSkin(playerid, modelid);
	    	SendClientMessage(playerid, -1, "Skin Changed");
	    }
	    else SendClientMessage(playerid, -1, "Canceled skin selection");
    	return 1;
	}
	return 1;
}

CMD:customskin(playerid, params[])
{
    ShowModelSelectionMenu(playerid, customskins, "Custom Skins");
    return 1;
}
Reply
#2

No longer need help... I wasn't reading the console when skin were corrupted.
Reply
#3

It should be:
PHP код:
new customskins mS_INVALID_LISTID
The code above fixed a lot of errors for me.

Put your customskins.txt into the scriptfiles folder. I've had issues with this before.
PHP код:
customskins LoadModelSelectionMenu("customskins.txt"); 
Also, make sure you download my updated version of mSelection for 0.3.8, else it won't show the custom models.

https://sampforum.blast.hk/showthread.php?tid=645620
Reply
#4

Quote:
Originally Posted by aoky
Посмотреть сообщение
It should be:
PHP код:
new customskins mS_INVALID_LISTID
The code above fixed a lot of errors for me.

Put your customskins.txt into the scriptfiles folder. I've had issues with this before.
PHP код:
customskins LoadModelSelectionMenu("customskins.txt"); 
Also, make sure you download my updated version of mSelection for 0.3.8, else it won't show the custom models.

https://sampforum.blast.hk/showthread.php?tid=645620
Can that be used on 0.3.7-R2 or is it 0.3.8 only?
Reply
#5

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Can that be used on 0.3.7-R2 or is it 0.3.8 only?
The original mSelection will work on 0.3.8, but it won't show the custom models. So therefore, you can only use original objects and skins default by GTA SA.

My mSelection fix will work on 0.3.8 also, but will show the custom models/objects.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)