GameRules_SetPropString

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

Sets a gamerules property as a string.

native int GameRules_SetPropString(const char[] prop, const char[] buffer, bool changeState = false, int element = 0)

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

int Number of non-null bytes written.

Error

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