Gambling does not necessarily affects ones relationship, but a poor gambling habits does. Because once you develop a bad habit in gambling, it will affect not just only yourself, but the people around you. For instance, if you have a family, it might affect your relationship with them if you spend most of your time engaging in gambling activities instead of having your time with your wife and children. It can also affect your family if your money was being used up on gambling instead of using it for more important things or the needs of your family.
Simply, there's nothing wrong in doing gambling. Problem only arises when it becomes a reason for you to develop poor relationship with your family, children, wife, friends, and yourself. So, it's better to have yourself reminded that gambling should only cause you happiness and entertainment and it shouldn't cause harm for you and the people around you.
Gambling has nothing to do with a person's relationship with his family or friends, but because many people gamble too often, it can affect their relationships with others. They have to be aware of this so they don't gamble too often because it can make them lazy to leave the house if they gamble online and can cause them to use up a lot of money. Those who gamble too often will just stay at home and may not take the time to interact with other family members, even though this is important to do so that their relationship with their family can be more harmonious. They only care about gambling and will continue to gamble so they will not pay attention to things other than gambling.
Indeed, there is nothing wrong with gambling as long as they can divide their time to do other things so they can still interact well with the people around them. It can also reduce their desire to continue gambling because of course, their minds will be distracted by doing other things. And if that goes well, they don't need to worry about their gambling addiction.