SA-MP Forums Archive
How to Add Names In it? [+REP] - 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: How to Add Names In it? [+REP] (/showthread.php?tid=556281)



How to Add Names In it? [+REP] - danish007 - 10.01.2015

Hello, My Question is how to add Names in it? My Code is Given Under

so Suppose this is ID Of Gimp Mask and Cowboyhat given Under how can i add names in it? "GimpMask" or "Cowboyhat: in it?

pawn Код:
new PlayerClothesList[] =
{
19163,//GimpMask
18639 //CowBoyHat
};



Re: How to Add Names In it? [+REP] - ]Rafaellos[ - 10.01.2015

If I'm not mistaken: (I have to code for a while)

pawn Код:
new PlayerClothesList[][] =
{
    {19163, "GimpMask"},
    {18639, "CowBoyHat"}
};
Usage

pawn Код:
PlayerClothesList[0][0] //19163
PlayerClothesList[0][1] //GimpMask



Re: How to Add Names In it? [+REP] - ATGOggy - 10.01.2015

I think you want to use it like this:
PHP код:
new PlayerClothesList[][]=
{
"GimpMask""CowBoyHat"}; 
And you can use it by
PHP код:
PlayerClothesList[0// gimpmask
PlayerClothesList[1//cowboyhat 



Re: How to Add Names In it? [+REP] - Clad - 10.01.2015

pawn Код:
new PlayerClothesList[][] =
{
* * {19163, "GimpMask"},
* * {18639, "CowBoyHat"}
};



Re: How to Add Names In it? [+REP] - danish007 - 10.01.2015

Quote:
Originally Posted by Clad
Посмотреть сообщение
pawn Код:
new PlayerClothesList[][] =
{
* * {19163, "GimpMask"},
* * {18639, "CowBoyHat"}
};
and usage?


Re: How to Add Names In it? [+REP] - danish007 - 10.01.2015

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
If I'm not mistaken: (I have to code for a while)

pawn Код:
new PlayerClothesList[][] =
{
    {19163, "GimpMask"},
    {18639, "CowBoyHat"}
};
Usage

pawn Код:
PlayerClothesList[0][0] //19163
PlayerClothesList[0][1] //GimpMask
your code won't show anything.... just blank