Most likely you have a line with ColorPrint() where you don't have the same number of format placeholders (%d, %i, %f, %c, %s, %x, %a whatever) and arguments following.
Check out the line that the debug message is pointing at.
And just as a side note, use charsmax() instead of manually entering 31 when working with strings.