Scripting Help!
#1

I do't know how to make this anybody who can show me how
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");
}
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
Reply


Messages In This Thread
Scripting Help! - by ThePrograme - 15.09.2012, 18:26
Re: Scripting Help! - by Ronaldo_raul™ - 15.09.2012, 19:08
Re: Scripting Help! - by ThePrograme - 15.09.2012, 19:22
Re: Scripting Help! - by Ronaldo_raul™ - 16.09.2012, 06:03
Re: Scripting Help! - by ThePrograme - 16.09.2012, 15:02
Re: Scripting Help! - by ThePrograme - 16.09.2012, 15:05
Re: Scripting Help! - by ThePrograme - 16.09.2012, 16:03
Re: Scripting Help! - by ThePrograme - 16.09.2012, 17:28
Re: Scripting Help! - by TaLhA XIV - 16.09.2012, 17:39
Re: Scripting Help! - by ThePrograme - 16.09.2012, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)