...................
What I want to know is: Did I do a good job by using gambling to save him? Or do I just make him have an interest in gambling as a source of income?
Even if this guy catches a break here, gambling tends to do more harm than good. By giving him money to gamble, there is that chance he sees gambling as a quick way to make money when in reality it is very risky and unreliable.
Maybe next time, it would be better to assist in a different way, like giving food or helping to find a solution for long-term financial stability. The dissemination of knowledge on how to manage money and making some form of income-generating activities safer could also be a good move.
The bottom line is that your intentions are good. However, it is important to think about the long-term effect of our actions, even if they do involve something as capricious as gambling.