AMX Mod X API Documentation

Signature
native query_client_cvar(id, const cvar[], const resultFunc[], paramlen = 0, const params[] = "");
Description

Dispatches a client cvar query, allowing the plugin to query for its value on

the client.

Notes
  • The callback will be called in the following manner:

    public cvar_query_callback(id, const cvar[], const value[], const param[])

    id - Client index

    cvar - Cvar queried

    value - Cvar value on the client

    param - Optional extra data

Parameters
  • id Client index
  • cvar Cvar to query
  • resultFunc Callback function
  • paramlen Size of extra data
  • params Extra data to pass through to callback
No return value
Errors
  • If the client index is not within the range of 1 to

    MaxClients, the client is not connected, the callback

    function is invalid or the querying process encounters

    a problem, an error will be thrown.

Назад
Верх