Car turns off when I turn on airconditioner or headlights. on 1998 Chevrolet Prizm

I smelled something burning inside the car one day while driving home. Evidently it caused a short and this problem starting occuring. Note: I have no idea what burned and can only sumize the smell came from behind the dash

Asked by for the 1998 Chevrolet Prizm
Remove the battery negative terminal, tow it to a shop and ask them to check it. Electrical shorts could cause fire and serious injury or death. It could happen very fast.
Take it seriously.