@pieter7560 First of all this is a forum for users by users - this is not tech support or customer service. If you tell us why you need a code perhaps we can direct you in the right direction. Other wise you need to direct your inquiry to EA customer service - link - EA customer service
@pieter7560 What is wrong with your old code?
@BoredBxtch You'd have to buy a new game to get another code. EA doesn't allow or support sales or transfers of games from one player to another, even if the current owner is in possession of the relevant discs.
You can check both Origin and Steam for the occasional Sims 3 sales—the base game and packs can be priced as low as $5 U.S. each.