Since it was an error at the BASIC level, MCS should have highlighted the line. (you may need to double-click the error line)
Which one was it?

What chip are you using?

What version of PBP are you using?

Did you put the interrupt files in your PBP folder?

Did you modify the program?

Did you include anything else.

Are you using the exact program scalerobitcs gave or are you trying to add it to your existing program.

Help us out here.