ammobox = "weaponHolder" camcreate [getPos table, getPos table, getPos table +1]
That's because this part is wrong. Try this:
ammobox = "weaponHolder" camcreate [getPos table select 0,getpos table select 1, 1]
Of course, you need an object named "table" first.