I'm very new to programming and i'm trying to create a delay, but I keep getting the error "expression preceding parentheses of apparent call must have (pointer-to-) function type"
on the line that has delay(1000); is where i get the error. why is this happening and how can i fix it?Code:void AI(void){ unsigned int delay = 1000; if (yR2 > yBall) { if (yR2 > RACKET ) { delay(1000); yR2--; } }