Signature
native DoNotUse:ArrayGetStringHandle(Array:which, item);
Description
Creates a special handle that can be passed to a string format routine for
printing as a string (with the %a format option).
Notes
-
It is recommended to pass the function as a parameter to the format
routine directly. The array item must contain a null-terminated string!
- Do not save or otherwise use the handles returned by this function.
-
Example usage:
console_print(id, "%a", ArrayGetStringHandle(MessageArray, i));
Parameters
- which — Array handle
- item — Item to retrieve handle of
Returns
Handle to the item
Errors
-
If an invalid handle or an invalid index is provided an
error will be thrown.