Random skin problems!
#3

Quote:
Originally Posted by biker122
View Post
pawn Code:
new skinurimasculine[11] =
{
  1,2,3,6,7,21,22,23,291,292,42
};
new skinurifeminine[11] =
{
  11,40,41,55,56,69,151,169,191,193,195
};
pawn Code:
if(PlayerInfo[playerid][Sex] == 1)
        {
                            new skin = GetPlayerSkin(playerid);
                SetPlayerSkin(playerid, skinmasculin[random(11)]);
                PlayerInfo[playerid][pSkin] = skin;
        }
        else if(PlayerInfo[playerid][Sex] == 2)
        {
                            new skin = GetPlayerSkin(playerid);
                SetPlayerSkin(playerid, skinfeminin[random(11)]);
                PlayerInfo[playerid][pSkin] = skin;
        }
try this
Why do you need to get player skin if you change it anyway? And you set pSkin to old one, not new one.
Reply


Messages In This Thread
Random skin problems! - by Metharon - 14.05.2014, 04:44
Re: Random skin problems! - by biker122 - 14.05.2014, 05:10
Re: Random skin problems! - by Scottas - 14.05.2014, 05:14

Forum Jump:


Users browsing this thread: 2 Guest(s)