I was having a slightly similar problem with one of my chameleons not too long ago. First of all if it's not eating or drinking make sure that you help him do so. Especially if you have no money for a vet, which you should come up with as soon as humanly possible. Give him a warm shower, out of the main stream, but close enough so that water does hit him. This might help loosen the stuff around his eyes and it will motivate him to drink. Try to see if you can manage to get some food into him. He might have an eye infection of some sort but only a vet will be able to tell you for sure so you really must see one asap. They can prescribe some antibiotic eye drops and show youhow to get them in his eye. I wish both of you luck