Really need to scan the computer systems to see what is going on, because this could be an Electronic Throttle issue, a Vacuum leak, a fuel issue etc.
http://repairpal.com/bmw-repair-in-hamilton-ohio
RepairPal Certified shops can diagnose and repair your 1998 BMW M3. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.