SA-MP Forums Archive
Scripting Help! - 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: Scripting Help! (/showthread.php?tid=377877)



Scripting Help! - ThePrograme - 15.09.2012

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


Re: Scripting Help! - Ronaldo_raul™ - 15.09.2012

What are you trying do to ?


Re: Scripting Help! - ThePrograme - 15.09.2012

Im trying to make on off skin saving get it


Re: Scripting Help! - Ronaldo_raul™ - 16.09.2012

How do you save your other variables ?
Y_INI ?


Re: Scripting Help! - ThePrograme - 16.09.2012

yes y_ini


Re: Scripting Help! - ThePrograme - 16.09.2012

Anyone


Re: Scripting Help! - ThePrograme - 16.09.2012

bump


Re: Scripting Help! - ThePrograme - 16.09.2012

?


Re: Scripting Help! - TaLhA XIV - 16.09.2012

Stop bumping your topic,your second bump was right after 3 mins.


Re: Scripting Help! - ThePrograme - 16.09.2012

Sorry realy need it and don't know how to do it