So the whole (well, 97%) of the science community have invented climate change in order to advance their careers?
First, there is no 97%, but about a third. Second, it doesn't work in such direct, devious ways you suggest. It is more subtle. Scientists are human, and humans respond to incentives. So, if funds and grants are provided, invitations to symposiums offered, chances of being published and academically and professionally promoted, mostly to those that toe the party line, that is where the scientists would go. Just human.