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(0 <= CurrentWar < sizeof(WeaponsData))
{
WEAPONBPAMMO = WeaponsData[CurrentWar][WEAPON_BPAMMO];
}
else
{
log_amx("[Error] Index: %i", CurrentWar);
}