Pineapple Express actor Craig Robinson has pleaded guilty to possession of ecstasy.The 36-year-old actor struck a deal with prosecutors in court in Los Angeles on Wednesday.He pleaded guilty to a felony; charges of methamphetamine possession and a misdemeanour charge of driving under the influence were dropped.The case against him will be dismissed if he completes counselling and stays clean for 18 months.Robinson was arrested in Culver City, California on 29 June. He was pulled over while driving and cops found drugs in his car.His attorney Blair Berk says, "Mr. Robinson really appreciates and takes seriously the opportunity which has been given to him by the court and the prosecution to have all of the charges against him dismissed, upon successful completion of a counselling programme."