It is best to just take the hamster to the vet.
The pain associated with dry eye syndrome is usually described as scratching or burning. This is sometimes accompanied by a feeling that something is stuck in the eye. If this is the case, you should...
patch it up loosely, then bring him/her to a vetranarian for special, professional help.
Take to vet
get special eye drops