24.12.2011, 23:12
I'm pretty sure it's due to you using like 300 GetPlayerSkin's in one if statement. The best way to do what you are doing, is create an array with all the skin id's then make a loop.
pawn Код:
new skinarray[] = {1, 2, 3, 4, 5}; //Add all the skins you want in here. Or you could do all the ones you don't want and do opposite processing.
public SetPlayerGender(playerid)
{
new skin = GetPlayerSkin(playerid);
for(new x; x<sizeof(skinarray); x++)
{
if(skin == skinarray[x]) PlayerInfo[playerid][pGender] = 1;
}
return 1;
}