Roleplaying (RP) is a creative act which several people play roles of characters in order to create a collaborated story. In other words, people act.
Role playing games (RPG) are games in which you also play the role of a character in order to carve your own story (most of the time), however, this one has you following strict rules, and often involves GAMEPLAY.