GameRules_SetPropString Function

Sets a gamerules property as a string.

int GameRules_SetPropString(const char[] prop, const char[] buffer, bool changeState, int element)

Parameters

const char[] prop

Property to use.

const char[] buffer

String to set.

bool changeState

This parameter is ignored.

int element

Element # (starting from 0) if property is an array.

Return Value

Number of non-null bytes written.

Errors

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