My friend wants to join the server but he needs to get that code first so i would like to know what I can do to get him in....
Your friend has to register on the website here before it will allow them him to login to the tutorial. This should solve your problem, if not, post here with error message.