Array copy error

 
int all_signals[6][19];
   int data[19];
   function(data);
   ArrayCopy(all_signals[0],data);


error

'all_signals' - invalid array access


How to put data values into all_signals[0] directly?

 
Cao Wang:
How to put data values into all_signals[0] directly?

I don't know how to do this using the built-in function given the use of a two-dimensional array, but you can simply write 2 lines:

#define _size 19

void OnStart()
  {
   int all_signals[6][_size];
   int data[_size];
   for(int i = _size - 1; i >= 0; i++)
      all_signals[0][i] = data[i];
  }

It's faster than reading the ArrayCopy documentation

 
Vladislav Boyko #:
   for(int i = _size - 1; i >= 0; i++)

i--

 
Yashar Seyyedin #:

i--

Yes, exactly, thank you!😄

 
Vladislav Boyko #:

I don't know how to do this using the built-in function given the use of a two-dimensional array, but you can simply write 2 lines:

It's faster than reading the ArrayCopy documentation

thank you.