get_info_keybuffer

Синтаксис

native get_info_keybuffer(id, buffer[], length);

Употреба

id
Server/client index
buffer
Buffer to copy keybuffer to
length
Maximum size of buffer

Описание

Retrieves keyvalue buffer from a client or the server.

Забележка

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"

Връщаща стойност

Number of cells written to buffer

Грешка

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.