native Array:ArrayCreate(cellsize = 1, reserved = 32);
cellsize | Size of each array entry in cells |
reserved | Pre-allocates space in the array for the specified number of items. The items are not valid to read or set until they have actually been pushed into the array. |
Creates a handle to a dynamically sized array.
It is very important that the provided cellsize matches up with the buffer sizes that are passed with subsequent Array[Get|Set|Push] calls.
Initially the "reserved" parameter was intended to create blank entries that would immediately be usable with Array[Get|Set] functions. This functionality was never working as intended, and can now be achieved using ArrayResize().
New array handle, which must be freed via ArrayDestroy()
If an invalid cellsize is provided an error will be thrown.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.