Skins
#8

Quote:
Originally Posted by Darkwood17
Посмотреть сообщение
Try this:

Код:
stock IsInvalidSkin(skin) 
{ 
    #define    MAX_BAD_SKINS   15 
    new badSkins[MAX_BAD_SKINS] = 
    { 
        1, 3, 4, 5, 6, 8, 42, 65, 74, 86, 
        119, 149, 208, 273, 289 
    }; 

    for (new i = 0; i < MAX_BAD_SKINS; i++) 
    { 
        if (skin == badSkins[i] || skin < 0 || skin >= 311 ) return true; 
    } 

    return false; 
}
Quote:
Originally Posted by Metharon
Посмотреть сообщение
pawn Код:
stock IsInvalidSkin(skin)
{
    #define    MAX_BAD_SKINS   15
    new badSkins[MAX_BAD_SKINS] =
    {
        1, 3, 4, 5, 6, 8, 42, 65, 74, 86,
        119, 149, 208, 273, 289
    };

    for (new i = 0; i < MAX_BAD_SKINS; i++)
    {
        if (skin == badSkins[i] || skin < 0 || skin >= 311 ) return true;
    }

    return false;
}
Thanks guys it works now! rep++ to you
Reply


Messages In This Thread
Skins - by GeorgeMcReary - 14.06.2015, 17:15
Re: Skins - by DarkLored - 14.06.2015, 17:21
Re: Skins - by GeorgeMcReary - 14.06.2015, 17:28
Re: Skins - by Darkwood17 - 14.06.2015, 17:30
Re: Skins - by GeorgeMcReary - 14.06.2015, 17:37
Re: Skins - by Darkwood17 - 14.06.2015, 17:40
Re: Skins - by Metharon - 14.06.2015, 17:41
Re: Skins - by GeorgeMcReary - 14.06.2015, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)