How to work with a TEAM?

Thanks, I managed to make perforce work but I have to say that it was a nightmare, now im testing it but im not sure that is the best option for code files…