2021-04-05, 05:55 AM
(2021-04-05, 05:51 AM)Bakr Wrote: Are you receiving the message "Your skin has been changed..."?
Does FactionInfo[playerid][FSkin1] actually hold the correct skin ID you are trying to set?
Code:SendClientError(playerid, "Your skin has been changed because you don't have current faction ones.");
SetPlayerSkin(playerid, FactionInfo[playerid][FSkin1]);
PlayerInfo[playerid][Skin] = FactionInfo[playerid][FSkin1];
printf("Skin set to ID %i", FactionInfo[playerid][FSkin1]);
Looking at how you interact with PlayerInfo and FactionInfo array, I would suspect you are actually trying to set the skin from the value stored in
Code:FactionInfo[PlayerInfo[playerid][playerteam]][FSkin1]
What is iTier?
Are you receiving the message "Your skin has been changed..."?
- Yes, I see them but it switched my skin to CJ not in FSkin1.
Looking at how you interact with PlayerInfo and FactionInfo array, I would suspect you are actually trying to set the skin from the value stored in
- Correct.
What is iTier?
-?new iTier = GetPlayerSkin(playerid);