i dont get how to unlock my iphone 3g because i let my friend use it and he forgot the passcode
Read the article that you linked
If you are unable to remember the code you will need to restore your device. Take a look at this link, http://support.apple.com/kb/HT1212
Retrieving data ...