If you were selling pills, you can be charged and CONVICTED of selling controlled substances.  Doesn't matter if you have proscription.  Now, if they charged you just because you had pills and nothing else (e.g., selling them to cop) then you should be fine.  No proof possession was with intent to resale.Claiborne