c++ clamp

i tryed to clamp but it’s just not working. I also tried to clamp value directly where i set r.antialiasingmethod, but it’s giving me error. What i am doing wrong? where i need to clamp my variable?.. (sorry, i really don’t know c++) :((((