2021-04-05, 05:51 AM
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?
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
What is iTier?
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?