Need help about if else

Brother sister i need help, it tells me that a compilation error: expected primary-expression before ',' token that, pointed to the third line of comma

Thanks!

void loop() {
  if (radio.available()) {
    radio.read(&magmotor , sizeof(magmotor)); 
    LobotSerialServoMove(Serial, ID_ALL, 1000, 500);
    delay(300);
  } else {
    LobotSerialServoMove(Serial, ID_ALL, 0, 500);
    delay(300);
  }
}

Welcome to the forum

Please post your sketch, using code tags when you do

In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

Pleas also post the full error message copied from the IDE using the button provided for the purpose

My suspicion is the the problem is the definition of ID_ALL but without seeing the code it is impossible to say

ok lemme fix it first, thank you

yes I would happily bet that's it's a #define and there is a trailing ; on that line

Please post the actual error message. It had a lot more information than you are giving when you paraphrase it.

The compiler issues the error message when it finds a problem. The actual problem may start several lines earlier. This is why we need to see all the code.

Thanks, i will resend it in the new post