Depends on source. The type of medication depends on the source of the pain. For instance if the pain is from pleurisy (an inflammation of the lining of the lung) drugs like Motrin and advil (ibuprofen) are best. If the pain is from an injury or fracture of a rib narcotics may be required to control your pain. Determine the cause of your pain is critical to its treatment.
Med-i-cal visit! Constant right sided chest pain could be a nuissance condition or something very serious. This could depend on whether your are male or female and what your risks are. If you are having constant chest pain, even on the right, I would recommend you seek medical care immediately.