SA-MP Forums Archive
[Help]Skin Selection Problem! Only CJ's Skin. - 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: [Help]Skin Selection Problem! Only CJ's Skin. (/showthread.php?tid=509625)



[Help]Skin Selection Problem! Only CJ's Skin. - saikumar - 27.04.2014

when i enter into skin selection after connecting there is only CJ's Skin but no other skin from 1 - 299
the only 0 skin

Please Help me to solve this
i got no warnings or errors in pawno

Thanks in Advance For Help!


Re: [Help]Skin Selection Problem! Only CJ's Skin. - Konstantinos - 27.04.2014

Have you set other skins with AddPlayerClass function?


Re: [Help]Skin Selection Problem! Only CJ's Skin. - saikumar - 27.04.2014

nope...how to do that
and i seen several scripts didnt had that Addplayerclass function but they have all the skins in skin selection!!


Re: [Help]Skin Selection Problem! Only CJ's Skin. - NoahF - 27.04.2014

Here:
https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: [Help]Skin Selection Problem! Only CJ's Skin. - saikumar - 27.04.2014

is there any other way?
coz i seen several scripts didnt had that Addplayerclass function but they have all the skins in skin selection!!


Re: [Help]Skin Selection Problem! Only CJ's Skin. - Konstantinos - 27.04.2014

You cannot add skins without that function. Those scripts might use a loop so it's possible to add all the skins in one line and not having 300 lines.


Re: [Help]Skin Selection Problem! Only CJ's Skin. - saikumar - 27.04.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
You cannot add skins without that function. Those scripts might use a loop so it's possible to add all the skins in one line and not having 300 lines.
How to do that?


Re: [Help]Skin Selection Problem! Only CJ's Skin. - Konstantinos - 27.04.2014

The arguments are an example from the Wiki.
pawn Код:
for (new skinid; skinid != 300; ++skinid) if (skinid != 74) AddPlayerClass(skinid, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);



Re: [Help]Skin Selection Problem! Only CJ's Skin. - saikumar - 27.04.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The arguments are an example from the Wiki.
pawn Код:
for (new skinid; skinid != 300; ++skinid) if (skinid != 74) AddPlayerClass(skinid, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
Thanks Dude..
it helped me

**********Problem Solved**********



Re: [Help]Skin Selection Problem! Only CJ's Skin. - KayJ - 27.04.2014

Use it on your script. Sure it will works
pawn Код:
AddPlayerClass( 280, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
Look Skin ids Click here and choose which skin you want!

280 is skin id

If this works +rep me