You didn't bother to tell us the make of car but I guess it is a Mercedes.
It would have taken you all of 30 seconds to do a Google search for "SLK 1999 code fob" os something silimar and find this as the first result:
http://www.slkworld.com/slk-r170-general-discussion/33461-can-you-re-program-key-fob.html
And the second resut:
http://www.benzworld.org/forums/r170-slk-class/1200164-problem-remote-key-fob.html
You'd have had it sorted by now if you hadn't waited for someone to hand hold you
XXX, December 2015