GameRules_GetPropString

Last Updated2021-08-23
Created At2011-07-06

Gets a gamerules property as a string.

native int GameRules_GetPropString(const char[] prop, char[] buffer, int maxlen, int element = 0)

Parameters

const char[] prop
Property to use.
char[] buffer
Destination string buffer.
int maxlen
Maximum length of output string buffer.
int element
Element # (starting from 0) if property is an array.

Return Value

int Number of non-null bytes written.

Error

Prop type is not a string, or lack of mod support.