Warning light when accelerating on 1999 BMW 328i

When accelerating fast the engine light comes on. Once you turn the car off and back on, it turns off.The car does not shift into another gear once this happens. It only occurs when you punch it not when you accelerate at an even speed

Asked by for the 1999 BMW 328i
This means that the computer System has a code. See this article for some info for this Check Engine Light