Discipline only comes with experience.
After losing many times because of my own mistakes, I started to develop a certain playing style that fits me — and I stopped repeating the same errors I made early on.
You have to go through that learning curve to really improve your self-control.