I already got the carpet professionaly washed:/ and okay ill see about the walls and.sadly I cant rip the carpet out because we are renting
Wow this website is handy. I wouldn't have thought to wash or paint the walls, or clean the lightbulbs. Also mentions air filters.
Good luck!
http://freshome.com/2013/06/04/how-to-get-rid-of-unpleasant-odors-in-your-home/
Wash the walls and you may have to get rid of the carpet cause it could be too stinky to save.
Have you located the source of the smell? is it the carpet, or have the walls also absorbed the smell?
Baking soda and vinegar do amazing things to take out smells and stains.