Signature
native get_info_keybuffer(id, buffer[], length);
Description
Retrieves keyvalue buffer from a client or the server.
Notes
-
There are three different types of keyvalue buffers, depending on the
index passed:
-1 - "local" buffer (various server information and config values)
0 - server buffer (usually contains "*gamedir" only)
>0 - client buffer ("name", "rate" and other client info)
- The buffer is formatted as "\key1\value1\key2\value2\...\keyN\valueN"
Parameters
- id — Server/client index
- buffer — Buffer to copy keybuffer to
- length — 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.