Signature
native get_keyvalue(entity, const szKey[], value[], maxLength);
Description
Retrieves a value from an entities keyvalues.
Parameters
- entity — Entity index
- szKey — Key to retrieve value of
- value — Buffer to copy value to
- maxLength — Maximum size of buffer
Returns
Number of cells written to buffer
Errors
-
If an invalid entity index is provided or, if the index
is a client index, the client is not connected, an error
will be thrown.