native

zpn_class_get_prop

Syntax

native any:zpn_class_get_prop(const class_id, ePropClassRegisters:prop, any:...);

Description

Retrieves a class property.

Parameters

class_id Class index
prop Property to retrieve, from ePropClassRegisters
... Output buffer and length for string or array properties

Note

For string properties, pass an output buffer and its maximum length
after the property id.

Note

For array properties, pass an output array and its maximum length after
the property id.

Return

Property value for scalar properties, 1 for copied
string/array properties, or 0 if class storage is unavailable

Error

If class_id is not a valid class index, an error can be
thrown by the underlying array access.