buttonState1 = digitalWrite(buttonPin1);
He was pointing out what was wrong NOT telling you to put that in.
Did you read the error message, it told you there were not enough arguments, that means numbers to pass to the digitalWrite function. It needs two one to say where to write and the other to say what to write.
Dis you mean digitalRead - I think you did.