Mg966R chattering

Steve has nailed it for you - the read of pin 3 only occurs if pin 2 is low. You'll need to separate them. Use the auto format tool in the IDE and it will be more obvious.

Gents i'm going daft here can you help an old idiot out please

#include<Servo.h>
Servo servo1;
Servo servo2;
int pos = 0;
void setup()
{
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
servo1.attach(9);
servo2.attach(10);
}

void loop()
{
if (digitalRead(2) == LOW);
servo1.write(90);
else servo1.write(0);
}

if (digitalRead(3) == LOW);
servo2.write(90);
else servo2.write(0);
}
}
Getting an error of
Not used: C:\Program Files (x86)\Arduino\libraries\Servo
exit status 1
'else' without a previous 'if'

If statements don't have a semi colon. Compare with your prior working code.

Gents got it working .
Many thanks for your help and suppot
#include<Servo.h>
Servo servo1;
Servo servo2;
int pos = 0;
void setup()
{
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
servo1.attach(9);
servo2.attach(10);
}

void loop() {
if (digitalRead(2) == LOW) {
servo1.write(90);
}
else
servo1.write(0);
{
}
if (digitalRead(3) == LOW) {
servo2.write(90);
}
else
servo2.write(0);
}