Skins Problem.
#1

Hello peoples. I have problem with faction skins, when i do /giverank then that skin what i typed in skript didnt sets on player, sets another skin not that what i choosed.. i hope u understand my english is a bit low :q

Here script

Код:
case 18: //Ballas
				{
				    if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, 291); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = 291; }
				    else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, 292); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = 292; }
				    else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, 103); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = 103; }
				    else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, 103); SelectCharPlace[playerid] = 5; ChosenSkin[playerid] = 103; }
				    else if(SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid, 102); SelectCharPlace[playerid] = 6; ChosenSkin[playerid] = 102; }
				    else if(SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid, 102); SelectCharPlace[playerid] = 7; ChosenSkin[playerid] = 102; }
				    else if(SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid, 104); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = 104; }
				}
from 1 to 7 are Faction ranks for Ballas. another numbers are skins ID's, i tryed a lot of thing but still dont work and i dont know anymore what to do with this.

someone said i need to change a bit this script IF i have that. (and i have) here it is.

Код:
public IsValidSkin(skinid)
{
    #define	MAX_BAD_SKINS 22
    new badSkins[MAX_BAD_SKINS] =
    { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289 };
    if (skinid < 0 || skinid > 299) return true;
    for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return true; }
    #undef MAX_BAD_SKINS
    return 1;
}
That 2 ''true'' in max_bad_skins was on false, then someone said i need change it to true but when i changed still didnt worked. ; (
Reply
#2

Huh? someone know the fault?
Reply
#3

I fixed that, can TC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)