What are you trying to do with the computer? The 8350 will have similar performance to the 3770 for things like video encoding and 3d rendering, but lags a bit behind for gaming.
i5-3570K also has similar performance to the 3770 in lots of apps, particularly gaming.
If you can't afford the 3770, then it's going to depend what your primary goal is, but i5 3570 and fx 8350 are the next best alternatives.