Error #3:
Bad base class but I guess you fixed it
Error #4:
You most likely forgot a }; so it won't recognize your magazine class, so check that... Or it could be that your ammo classname is the same as your mag classname? But most likely a missing };