Signature
native ArraySetArray(Array:which, item, const any:input[], size = -1);
Description
Fills an item's data with the contents of an array.
Notes
-
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.
Parameters
- 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.
Returns
Number of cells copied
Errors
-
If an invalid handle or an invalid index is provided an
error will be thrown.