native

zpn_gamemode_get_prop

Syntax

native any:zpn_gamemode_get_prop(const gamemode_id, ePropGameModeRegisters:prop, any:...);

Description

Retrieves a game mode property.

Parameters

gamemode_id Game mode index
prop Property to retrieve, from ePropGameModeRegisters
... 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 game mode storage is
unavailable

Error

If gamemode_id is not a valid game mode index, an error can
be thrown by the underlying array access.