Raised This Month: $ Target: $400
 0% 

Run time error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 02-11-2017 , 04:19   Run time error 4: index out of bounds
Reply With Quote #1

Code:
Run time error 4: index out of bounds 
menuitem_callbackc
Code:
public menuitem_callbackc( id, menu, item )
{
    if( !g_PlayerSkins[id][ Player[ id ][ PLAYER_SKIN ] ] )
    {
        if( Skin_Info[ item ][ SKIN_KNIFE ] != -1 && !g_PlayerKnives[id][Skin_Info[ item ][ SKIN_KNIFE ]] )
        {
            return ITEM_DISABLED;
        }
        else if(!CheckSkin(id, item))
        {
            return ITEM_DISABLED;
        }
    }
    return ITEM_IGNORE;
}
wat wrong? i did a check != -1
__________________
Қазақстан Республикасы
Snitch is offline
Send a message via Skype™ to Snitch
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode