You might be able to save him
Looking at the picture, it looks like he is prolapsed. A vet might be able to fix this.
I have to admit, though, that I have spent lots of money at the vet and still lost chameleons. You have to catch them before they go too far downhill, otherwise, no amount...