SetEntPropString Function

Sets a network property as a string.

int SetEntPropString(int entity, PropType type, const char[] prop, const char[] buffer, int element)

Parameters

int entity

Edict index.

PropType type

Property type.

const char[] prop

Property to use.

const char[] buffer

String to set.

int element

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

Return Value

Number of non-null bytes written.

Errors

Invalid entity, offset out of reasonable bounds, or property is not a valid string.