My weapon count ammo Until get Minus variable

I left click and when my weapon get 0 ammo and then I click again Ammo get -1 to -… How to fix?

Immediately after you subtract one from your ammo stack, put in a Clamp node. You can use the Maths node “Clamp” to keep the the value to a minimum of 0.

Clamp stops your values going outside of a range, so you can use it to give your variables maximums and minimums.