What is the limit for the length of a paintball gun barrel?

I have a tippman 98 custum paintball marker. It has a response trigger, and i have many dif. barrels all dif. lengths. ( custum, 12, 14, 18 in barrels) I use the 18in. barrel, but it has been giving me some problems with range and accuracy. I havnt used the other barrels lately, but i might start using them to see if there is a dif. But is there a length i should not go over? and is a flatline a great idea for woodsball?