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