I don’t know if this is the problem, but try Ch2, Ch3 instead of 2, 3. In RobotC all the channels and button are actually a number (starting at 0), when you type Ch1 the compiler sees it as the number 0, so the compiler sees your 3 as Ch4.
@DarkMatterMatt. In Robotc, all the channels correlate to the different axis’s on the joystick. As in ch1, ch2, ch3, ch4. As do the buttons. The Number refers to the axis or group, not the number of axis or buttons