ArraySetArray

Синтаксис

native ArraySetArray(Array:which, item, const any:input[], size =-1);

Употреба

which
Array handle
item
Item index in the array
input
Array to copy to the cellarray
size
If not set, assumes the buffer size is equal to the
cellsize. Otherwise, the specified size is used.

Описание

Fills an item's data with the contents of an array.

Забележка

If the size parameter is specified as -1 the input buffer has to match
the size the array was created with.

Забележка

The item index must already be valid. Use ArrayPushArray to create
a new array item in the cellarray.

Връщаща стойност

Number of cells copied

Грешка

If an invalid handle or an invalid index is provided an
error will be thrown.