I tried the same technique and then ended up trying to kill myself using all the pills, but that just made me sick and throw up followed by tremors for a few weeks. I was twice a failure.
After a few more failed attempts and visits with bad therapists, I finally found professionals and medication that worked for me and I've been suicide-attempt-free for 13 years now! And the past 6 years have seen significantly more good days than bad.