Prosecution Under This Act Shall Be a Bar to Another Prosecution Under the Revised Penal Code or Any Special Penal Laws. - When a person has been prosecuted under a provision of this Act, upon a valid complaint or information or other formal charge sufficient in form and substance to sustain a conviction and after the accused had pleaded to the charge, the acquittal of the accused or the dismissal