Raised This Month: $ Target: $400
 0% 

Index : Out of bound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 03-31-2017 , 07:27   Re: Index : Out of bound
Reply With Quote #2

What's hold CurrentWar? It seems that CurrentWar holds bigger value than size of WeaponsData.

You can try this and check what is happening?
PHP Code:
new WEAPONBPAMMO;
    if(
<= CurrentWar sizeof(WeaponsData))
    {
        
WEAPONBPAMMO WeaponsData[CurrentWar][WEAPON_BPAMMO]; 
    }
    else
    {
        
log_amx("[Error] Index: %i"CurrentWar);
    } 

Last edited by KiLLeR.; 03-31-2017 at 07:34.
KiLLeR. is offline
 



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 17:55.


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