for...next for bullets

Blitz3D Forums/Blitz3D Tutorials/for...next for bullets

I can't figure out how to make bullets with different weapons
see, usually i do
select whichweapon5
case 1
maxbullets%=(something)
case 2
maxbullets%=(something)
etc.
default
maxbullets%=16


but then when I choose another weapon after I fire 16 bullets it says
"Array index out of bounds"


what do i do?