Question: why did yamcha kill himself?
Answer: When Future Trunks arrived and told Goku what was to come, he told him that in his timeline, Yamcha hanged himself out of depression and insanity after learning that Bulma was pregnant with Vegeta's child (a very fatal blow to a man who already lost his pride and respect from his own comrades).