I`m having a problem with my code, can you please help me?

I´m at my first arduino year so I´m kind of new at this, so your help would be a big step for me.
My code is having a problem when I´m about to save him, I´m using Arduino Mega and a motor drive DK eletronics, whit a AFMotor libery, and I´m having problems in the code structure.
this is the code I´m using:
obs: (I´m brazilian, so some words will be in portugues.)

#include <AFMotor.h>

int sE1 = analogWrite(14);
int sE2 = analogWrite(15);
int sM1 = analogWrite(16);
int sM2 = analogWrite(17);
int sD1 = analogWrite(18);
int sD2 = analogWrite(19);

int csE1 = 800;
int csE2 = 800;
int csM1 = 1000;
int csM2 = 1000;
int csD1 = 800;
int csD2 = 800;

AF_DCMotor motor1(1); //declarar os motores
AF_DCMotor motor2(2);
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);

void setup() {
motor1.setSpeed(255); //declarar velocidade
motor2.setSpeed(255);
motor3.setSpeed(255);
motor4.setSpeed(255);
}

void seguirlinha() {
if {csM1 = csM2 && (FORWARD);} //se ambos forem iguais a preto entâo avançar

if {csE2 = csM1 && motor1.run(FORWARD); motor2.run(BACKWARD); motor3.run(FORWARD); motor4.run(BACKWARD);} // se ambos forem iguais a preto (quando um deveria ser branco) curva a esquerda

if {csD1 = csM2 && motor1.run(BACKWARD); motor2.run(FORWARD); motor3.run(BACKWARD); motor4.run(FORWARD);} //se ambos forem iguais a preto (quando um deveria ser branco) curva a direita

if {csM1, csM2 = csD1, csD2 && delay(1000); (FORWARD); delay(1000); motor1.run(FORWARD); motor2.run(BACKWARD); motor3.run(FORWARD); motor4.run(BACKWARD);} // se forem iguais a preto(quando dois deveriam ser iguais a branco) andar 0.5 cm e curva a esquerda

if {csE1, csE2 = csM1, csM2 && delay(1000); (FORWARD); delay(1000); motor1.run(BACKWARD); motor2.run(FORWARD); motor3.run(BACKWARD); motor4.run(FORWARD);} // se forem iguais a preto(quando dois deveriam ser iguais a branco) andar 0.5 cm e curva a direita

if {csE1, csE2, csD1, csD2 = csM1, csM2 && (FORWARD);} // se todos forem iguais a preto (quando alguns deveriam ser brancos) entâo avançar

if {csEI, csE2 = scD1, csD2 && (FORWARD);} // se todos forem iguais a branco, avançar
}

and this is the compilation:

segue_linha.ino:3:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino:4:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino:5:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino:6:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino:7:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino:8:25: error: too few arguments to function ‘void analogWrite(uint8_t, int)’
In file included from segue_linha.ino:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:130:6: note: declared here
void analogWrite(uint8_t, int);
^
segue_linha.ino: In function ‘void seguirlinha()’:
segue_linha.ino:30:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:31:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:32:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:33:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:34:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:35:4: error: expected ‘(’ before ‘{’ token
segue_linha.ino:36:4: error: expected ‘(’ before ‘{’ token

can you please help me? I´m desperate.

Please post the code and error messages inside (separate) code tags. See the button that looks like </> in the full editor.

if {csM1 = csM2 && (FORWARD);} //se ambos forem iguais a preto entâo avançar

This does not look like any other if() statement anywhere. Can you see what is wrong?

int sE1 = analogWrite(14);
int sE2 = analogWrite(15);
int sM1 = analogWrite(16);
int sM2 = analogWrite(17);
int sD1 = analogWrite(18);
int sD2 = analogWrite(19);

Read up on analogWrite(). It takes 2 arguments, the pin to be used and the value to be written to the pin. It does not return a value

From the Google translation of the comments, it appears that you are writing a line-following robot. I'm guessing that there are light sensors connect to six analog inputs. You should be reading the analog inputs (analogRead(pin)) and comparing that value to some threshold (analogRead(pin) > threshold).

Something like this but with more motors and more sensors: https://forum.arduino.cc/index.php?topic=64006.0

void seguirlinha () {
if {csM1 = csM2 && (FORWARD);} // if both are equal to black then move forward


if {csE2 = csM1 && motor1.run (FORWARD); motor2.run (BACKWARD); motor3.run (FORWARD); motor4.run (BACKWARD);} // if both are equal to black (when one should be white) turn left


if {csD1 = csM2 && motor1.run (BACKWARD); motor2.run (FORWARD); motor3.run (BACKWARD); motor4.run (FORWARD);} // if both are equal to black (when one should be white) curve right


if {csM1, csM2 = csD1, csD2 && delay (1000); (FORWARD); delay (1000); motor1.run (FORWARD); motor2.run (BACKWARD); motor3.run (FORWARD); motor4.run (BACKWARD);} // if they are equal to black (when two should be equal to white) walk 0.5 cm and turn left


if {csE1, csE2 = csM1, csM2 && delay (1000); (FORWARD); delay (1000); motor1.run (BACKWARD); motor2.run (FORWARD); motor3.run (BACKWARD); motor4.run (FORWARD);} // if they are equal to black (when two should be equal to white) walk 0.5 cm and turn right


if {csE1, csE2, csD1, csD2 = csM1, csM2 && (FORWARD);} // if all are equal to black (when some should be white) then move forward


if {csEI, csE2 = scD1, csD2 && (FORWARD);} // if all are equal to white, move forward
}

Something like this but with more motors and more sensors:

And more == and fewer =.