The beer can destroy liver leading to cirrhosis. The cigarettes can destroy lungs and can cause cancer. But your problem of black stool with gastric pain is related with stomach. The ulcer in upper part of stomach can cause bleeding. And it is the blood which mix up with stool and make it black. I suggest you to go for the diagnosis of gastric ulcer.