Skins from list
#1

Eh up!

So, I'm trying to display good skins from list which I need but there is a problem that I can't get my head in. So here we go.

pawn Код:
//That's under OnGameModeInit
for (new i = 0; i < 300; i++)
{
     if(IsValidSkin(i)) AddPlayerClass(i, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
}

//My function from which I want to display good skins from

stock IsValidSkin(skinid)
{
    #define MAX_SKINS 100

    new goodSkins[MAX_SKINS] = {
        213, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16,
        18, 26, 27, 31, 32, 34, 36, 37, 38, 39, 40
    };

    if (skinid < 0 || skinid > 299) return false;
   
    for (new i = 0; i < MAX_SKINS; i++)
    {
        if (skinid == goodSkins[i]) return true;
        else return false;
    }

    #undef MAX_SKINS
    return true;
}
So the problem is that I cannot display those skins. It sticks to 1st and doesn't go further or either way lists every skin which isn't even included. The what I'm trying to do is display those skins I have added in the class section.

Thanks in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)