AMX Mod X API Documentation

Signature
native Float:get_cvar_float(const cvarname[]);
Description

Returns a floating value from a cvar. The cvar is accessed by name.

Notes
  • Accessing a Cvar by name is slower than direct pointer access, which is

    why the otherwise equivalent get_pcvar_float() function should be used

    instead.

Parameters
  • cvarname Cvar name to retrieve value from
Returns

Cvar value, converted to float

Назад
Верх