If I had money, I would buy a new laptop. <-- added full stop (period), space after comma, not before.
This one means if I had any money, or lots of money, then I'd buy a laptop.
If I had the money, I would buy a new laptop.
This one means, if I had the money needed to buy a laptop, I'd buy a laptop.