I'm guessing you are trying to set the screen resolution greater then what your monitors resolution is.
Figure out your monitors resolution, and type in your console
setRes(ScreenSizeX, ScreenSizeY);
Replacing ScreenSizeX with the width in pixels of your monitor, and ScreenSizeY with height.