"Weapon" array size is 2, "Ammo" array size is 25, but both of them are used in "for" loop with 12 iterations (using iteration number as array index). Did you run this code at least once?
Sorry for mistake 2 is changed to 25,also change if you want to [50]