Skins keep spawning into CJ.
#6

The solution you use to give players skin they want should work logically, if there isn't any problem with SA-MPs own code.
Try adding this to the start of your SetSpawnParameters function:
Код:
printf("Skin: %i", PlayerInfo[playerid][pSkin]);
( Or you can also use SendClientMessage(ToAll) or something. But it's good to get used with debuging in console, there are problems that crash the server, DC you etc. so you know what to do in every case )
If this returns correct skin to console (22 in your case), it is probably SA-MPs bug and you should find another method to do what you need.
However if it returns 0, then the problem is elsewhere. You need to check the code where you assign value to PlayerInfo[playerid][pSkin].

If PlayerInfo[playerid][pSkin] is assigned correctly and it still doesn't work you need to think about other possible solutions. for example:
Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
	return 1;
}
Reply


Messages In This Thread
Skins keep spawning into CJ. - by |CrippinBloodDrippin| - 11.03.2009, 21:34
Re: Skins keep spawning into CJ. - by Pyrokid - 11.03.2009, 21:36
Re: Skins keep spawning into CJ. - by Norn - 11.03.2009, 23:19
Re: Skins keep spawning into CJ. - by matt2127 - 12.03.2009, 02:33
Re: Skins keep spawning into CJ. - by [RP]Rav - 12.03.2009, 02:36
Re: Skins keep spawning into CJ. - by 13th - 12.03.2009, 07:37
Re: Skins keep spawning into CJ. - by MenaceX^ - 12.03.2009, 09:38
Re: Skins keep spawning into CJ. - by matt2127 - 12.03.2009, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)