DIALOG_STYLE_INPUT
if(dialogid == SKININPUTID)
{
new skinid = strval(inputtext); //transforms to int form from string.
if(skinid > 311 && skinid < 0) //SAMP 0.3.7 skins range
return SendClientMessage(playerid, -1, "invalid"); //return an error or loop back to dialog?
SetPlayerSkin(playerid, skinid); //set the player's skin
}