Well, usually a white thick discharge is a
yeast infection but these do not really smell that bad. They are more itchy and
thick in
discharge. However, bacterial vaginosis DOES smell. But the discharge is more greyish in color and less thick and it usually doesn't itch. Or you could have some other fungal type of infection.
Really, you need to be evaluated by a doctor to determine what your discharge is so you can be properly treated.