GetEntPropString

Last Updated2011-06-06
Created At2007-04-14

Gets a network property as a string.

native int GetEntPropString(int entity, PropType type, const char[] prop, char[] buffer, int maxlen, int element = 0)

Parameters

int entity
Edict index.
Property type.
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

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