grinninglich: Now i am gonna buy books of some edition which version should i buy? Which is the most consistent and enjoyable?
It depends on what you want.
4th edition has less content, but it's newer and being expanded. The Forgotten Realms setting has a cataclysm, which I'm not a fan of (but you can choose to do whatever story you want). 4th edition feels more "gamey" to me. You get action points you can spend here or there. Everyone rolls the same types of damage and hits (put simply and almost accurately: a sorcerer's magical lance rolls the same as a fighter's longsword). Skills are easy to roll.
D&D 3.5 has more varied rolls. To me, it feels a little more "life-like." Its rules are simpler than AD&D (which is the 2nd version of D&D rules) because they made the math make more sense than their original rules (essentially, they took some negative numbers and made them positive, making the math just a step easier). 3.5 has more content and I'd imagine a larger player base. It looks like WotC is reprinting these, so you can get them new again. However, I like 3.5 also b/c if you have a good used book store around, you can often get great deals on lots of books.
AD&D and D&D1.0 are rule sets that I'd stay away from personally. There's nothing wrong with them, but it's getting harder to find material.
D&D rules were used in really old computer games. None that I played really fully adapted them, but I'm sure there were some. I didn't play much back in those days.. AD&D are the rules used with Baldur's Gate 1&2 and Icewind Dale 1. D&D 3.0 is used by Neverwinter Nights. NWN2 uses 3.5, as does Temple of Elemental Evil. The big changes are that a few spells and a few classes get a boost or a drop in power to make them more desirable or less desirable to use (example: some spells had effects lasting for 24 hours. You'd never not take the spell b/c it simply had too much power. Making it last for a few minutes instead of a few hours makes sure that the spell is useful, but it doesn't wreck the other good spells' chance of getting used).
4.0 hasn't really been used in a game that I've seen. A game on the XBOX I played had adapted some of it, but not really. I'm sure it's debatable, but I think that it would be harder to make 4.0 into a good and fun action-oriented video game without removing or adding a lot to the ruleset b/c it heavily relies on the game being turn-based, but it is good and fun to roleplay around a table with.
My overall recommendation: 3.5.
I bought 4 and then sold it. Our current games we play are all 3.5. It's enough to have fun with and it keeps it a little bit cheaper.