Weapon out of ammo problem

Can you post some code for us to double check?