15.09.2012, 18:26
I do't know how to make this anybody who can show me how
Your code may require some assembly (No that's not a pun)
Requirements:
function IsValidSkin(skinid)
function GetSkinName(skinid)
constant TOTAL_SKINS (I think it's 300)
constant MAX_SKIN_NAME
pawn Код:
FormatSkinList(playerid)
{
new
list[ (MAX_SKIN_NAME + 1) * TOTAL_SKINS];
for(new i; i<TOTAL_SKINS; i++)
{
if(!IsValidSkin(i))continue;
strcat(list, GetSkinName(i));
strcat(list, "\n");
}
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST, "Skins", list, "Save Skin On", "Save Skin Off");
}
Requirements:
function IsValidSkin(skinid)
function GetSkinName(skinid)
constant TOTAL_SKINS (I think it's 300)
constant MAX_SKIN_NAME