convayer project for college

hi hows a going im doing a project for college that requires a arduino to power a conveyer system, the arduino will need to start the program when I press a button, it starts a conveyer that moves till it comes to the first sensor, when it comes to this, the conveyer will stop a servo motor will turn 90degrease pause for a second then turn back 90. when this process is done the conveyer will start and continue on to the next sensor, this is repeated 3 times.

I tried to wright a script but im getting a lot of errors, iv done small basic scripts with the arduino but really struggling with this. any help would be really appreciated thanks.
this is the script I wrought.

const int buttonPin = 1; // the number of the start
const int ledPin = 2; // the number for on led light
const int pirPin1 = 3; // pin for sensor 1
const int pirPin2 = 4; // pin for sensor 2
const int pirPin3 = 5; //pin for sensor 3
const int myservo, attach = 6; // servo motor 1
const int myservo2, attach = 8; // servo motor 3
const int myservo3, attach = 8; // servo motor 3

const int DCmotor - 9; // convayer motor
const int buttonPin2 - 10); // stop button

// variables will change:
int buttonState = 0; // variable for reading the pushbutton status

void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
pinMode (pirPin1, INPUT);
pinMode (pirPin2, INPUT);
pinMode (pirPin3, INPUT);
pinMode (motor1, OUTPUT);
pinMode (motor2, OUTPUT);
pinMode (motor3, OUTPUT);
pinMode (DCmotor, OUTPUT);
pinMode (buttonPin2, INPUT);
}

void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);

// check if the pushbutton is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(ledPin, HIGH);
digitalWrite(DCmotor, HIGH);
}
(
buttonstate = digitalRead(pirPin1); // check is sensor is activated
if (pirPin1 == HIGH) ( // if sensor is activated
digitalWrite ( DCmotor, LOW); // stop dc motor
digitalWrite
for (pos = 0; pos <= 180; pos += 10) { // goes from 0 degrees to 180 degrees in 10 degre steps
myservo.write(pos); // tell servo to go to position in variable ‘pos’
delay(1000); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 10) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // servo to go to position in variable ‘pos’
delay(10); // waits 1ms for the servo to reach the position

}
( digitalWrite(DCmotor, HIGH);

buttonstate = digitalRead(pirPin2); // check is sensor is activated
if (pirPin2 == HIGH) ( // if sensor is activated
digitalWrite ( DCmotor, LOW); // stop dc motor
digitalWrite
for (pos = 0; pos <= 180; pos += 10) { // goes from 0 degrees to 180 degrees in 10 degre steps
myservo2.write(pos); // tell servo to go to position in variable ‘pos’
delay(1000); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 10) { // goes from 180 degrees to 0 degrees
myservo2.write(pos); // servo to go to position in variable ‘pos’
delay(10); // waits 1ms for the servo to reach the position
)
(
digitalWrite(DCmotor, HIGH);

buttonstate = digitalRead(pirPin3); // check is sensor is activated
if (pirPin3 == HIGH) ( // if sensor is activated
digitalWrite ( DCmotor, LOW); // stop dc motor
digitalWrite
for (pos = 0; pos <= 180; pos += 10) { // goes from 0 degrees to 180 degrees in 10 degre steps
myservo3.write(pos); // tell servo to go to position in variable ‘pos’
delay(1000); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 10) { // goes from 180 degrees to 0 degrees
myservo3.write(pos); // servo to go to position in variable ‘pos’
delay(10); // waits 1ms for the servo to reach the position
buttonState = digitalRead(buttonPin2);

// check if the pushbutton2 is pressed.
// if it is, the buttonState is HIGH:
if (buttonState == HIGH) {
// turn LED oFF
digitalWrite(ledPin, LOW );
digitalWrite(DCmotor, LOW);
)
}
}

const int myservo,  attach  = 6;    // servo motor 1
const int myservo2, attach  = 8;     // servo motor 3
const int myservo3, attach  = 8;     // servo motor 3

Where did you find that construct?

Please, please use code tags when posting code. (and English when asking questions)

I got them off the arduino website, I just posted 2 and 3 in to make it easier to follow,

how do I use code tags? or what are they just so I know for future

I got them off the arduino website,

Link, please.

Your code is a mess - you’ve got ) where you should have }, - when you should have =, the servos are never attached to pins, you’ve got comments that don’t agree with the code, you’ve got undeclared variables, misspelled variables (effectively the same thing, but easier to find), and "digitalWrite"s with no arguments.

You need to think about rewriting it.

ok thanks, I might be as well of start from the start again and try to fix the problems as I go along

how do I use code tags? or what are they just so I know for future

Didn't you read this back in January?