SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 30/07/2009, 04:33 PM   #1
XtremeChio
Huge Clucker
 
Join Date: Jul 2009
Posts: 266
Reputation: 0
Default Skin choosing bug

Hello,

I've added a few skins on my server when you spawn. CJ is the first one and then there are gang members. But if I choose let's say Ballas, I press SHIFT and it gives me CJ's skin. It happens with every skins.

So I deleted the CJ's skin selection in the script, and it still happens. I think it's also what's crashing me so much...Anyone knows what to do ? I can post some parts of script.

I'm pretty sure there is nothing wrong with how I typed the skin choosing, since it always worked - Until I added CJ.
Example:
Code:
AddPlayerClass(269,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
Anyone knows ?
XtremeChio is offline  
Old 30/07/2009, 06:03 PM   #2
James_Alex
Gangsta
 
Join Date: Dec 2008
Posts: 570
Reputation: 0
Default Re: Skin choosing bug

can u post all the script plz ?
James_Alex is offline  
Old 31/07/2009, 06:03 PM   #3
XtremeChio
Huge Clucker
 
Join Date: Jul 2009
Posts: 266
Reputation: 0
Default Re: Skin choosing bug

This is it, all skins

Code:
  AddPlayerClass(269,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(270,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(271,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(265,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(266,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(267,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(105,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
    AddPlayerClass(106,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
	AddPlayerClass(107,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(102,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
  AddPlayerClass(103,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
  AddPlayerClass(104,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
	AddPlayerClass(108,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
	AddPlayerClass(109,-468.3654,2208.0317,46.4776,115.0000,4,1,1,1,0,0);
	AddPlayerClass(110,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass(113,-467.6280,2208.3828,46.4052,115.0000,4,1,1,1,0,0);
	AddPlayerClass(125,-468.3654,2208.0317,46.4776,115.0000,4,1,41,50,0,0);
	AddPlayerClass(126,-469.4590,2207.5110,46.5850,115.0000,4,1,2,1,0,0);
	AddPlayerClass(165,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
	AddPlayerClass(166,-467.6280,2208.3828,46.4052,115.0000,0,0,0,0,0,0);
	AddPlayerClass(274,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(278,-469.4590,2207.5110,46.5850,115.0000,4,1,6,1,0,0);
	AddPlayerClass(280,-470.4734,2207.0278,46.6846,115.0000,4,1,8,1,0,0);
	AddPlayerClass(282,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(283,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(285,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(286,-469.4590,2207.5110,46.5850,115.0000,0,0,0,0,0,0);
	AddPlayerClass(287,-470.4734,2207.0278,46.6846,115.0000,6,1,0,0,0,0);
	AddPlayerClass(195,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(190,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(139,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 18,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 92,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(158,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
	AddPlayerClass(199,-467.6280,2208.3828,46.4052,115.0000,4,1,3,1,0,0);
	AddPlayerClass(162,-468.3654,2208.0317,46.4776,115.0000,4,1,3,1,0,0);
	AddPlayerClass( 33,-469.4590,2207.5110,46.5850,115.0000,4,1,3,1,0,0);
	AddPlayerClass(258,-470.4734,2207.0278,46.6846,115.0000,4,1,3,1,0,0);
	AddPlayerClass( 80,-467.6280,2208.3828,46.4052,115.0000,4,1,3,1,0,0);
	AddPlayerClass( 81,-468.3654,2208.0317,46.4776,115.0000,4,1,3,1,0,0);
	AddPlayerClass( 23,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass(137,-470.4734,2207.0278,46.6846,115.0000,4,1,1,1,0,0);
	AddPlayerClass(181,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(249,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 29,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
  AddPlayerClass( 49,-470.4734,2207.0278,46.6846,115.0000,4,1,11,1,0,0);
	AddPlayerClass( 62,-467.6280,2208.3828,46.4052,115.0000,4,1,11,1,0,0);
  AddPlayerClass( 66,-469.4590,2207.5110,46.5850,115.0000,4,1,11,1,0,0);
  AddPlayerClass( 82,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass( 83,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass(143,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass(156,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
  AddPlayerClass(180,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 19,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 21,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 22,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass(223,-467.6280,2208.3828,46.4052,115.0000,4,1,1,1,0,0);
	AddPlayerClass( 24,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 25,-469.4590,2207.5110,46.5850,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 28,-470.4734,2207.0278,46.6846,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 69,-467.6280,2208.3828,46.4052,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 48,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 67,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 7,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 55,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 11,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(167,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(176,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(177,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(179,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(203,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(205,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass(264,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
	AddPlayerClass( 70,-468.3654,2208.0317,46.4776,115.0000,4,1,0,0,0,0);
XtremeChio is offline  
Old 31/07/2009, 06:06 PM   #4
tturvas
Little Clucker
 
Join Date: Jul 2009
Posts: 26
Reputation: 0
Default Re: Skin choosing bug

Make those AddPlayerClass.... things to be in same line with return 1;
tturvas is offline  
Old 31/07/2009, 06:08 PM   #5
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Skin choosing bug

Can you show your OnPlayerSpawn?
MadeMan is offline  
Old 31/07/2009, 09:00 PM   #6
XtremeChio
Huge Clucker
 
Join Date: Jul 2009
Posts: 266
Reputation: 0
Default Re: Skin choosing bug

80% fixed, thanks to Seif ( don't ask me where I found 80 % lol )

I still see CJ when choosing a skin but he quickly turns into first available skin.
When I choose one skin, I don't crash and it's the skin I chose.

Thanks.
XtremeChio is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text at choosing skin wesone Help Archive 4 28/03/2010 12:46 PM
[Help] Skin Choosing dclaw Help Archive 2 21/02/2010 07:23 PM
Little help with skin choosing? [eF]ThundeR Help Archive 3 04/01/2010 11:44 AM
Choosing skin problem Frankox Help Archive 13 09/07/2009 12:07 PM
Choosing skin after the gamemodeinit efeX Help Archive 2 08/06/2009 05:38 AM


All times are GMT. The time now is 12:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.