Now that you have to figure out yourself because there so many types of scales....
Try to find out in what scale is does the solo belong to. (eg. G major , A minor , Em pentatonic). Once you get that right , learn all the notes involved in the scale and practice it by playing the scales in accending and decending order or even both.