invalid types 'char [int]' for array subscript

picmirc:
But how to declare array?

"character []" or "character" [5]? I've tried both ways and always gives error

you chould go:

String comando;

char inByte = Serial.read();
if (inByte!='*') // * is end of command
{comando+=inByte;}

.......