Here's a simplified chord chart for "When I Was Your Man" in the key of C. Play with a steady 4/4 pulse; use inversions for smooth voice-leading.
C | G | Am | F G | C | F | G
C | G | Am | F | F | G | Em | Am | Dm | G | C | G
F | G | Em | Am | Dm | G | C | C
C | G | Am | F | C | G | C
The original recording uses piano arpeggios; adapt the rhythm to your taste. For exact transcription, consult sheet music from Musicnotes or SheetMusicDirect.