Quote:
Originally Posted by BodyBuilder
PHP Code:
new hostname[64]
get_cvar_string("hostname",hostname,63)
client_print(id, print_chat, "Welcome to %s",hostname)
|
Pcvars are much faster and should be used if the cvar is to be used more than once for the map.
Quote:
Originally Posted by jimaway
no it shouldnt, get_cvar_pointer doesent exist, since get_cvar_* and set_cvar_* dont use pointers
|
Actually, it does exist.
It is used to get an existing cvar's pointer.
You can also get a cvar's pointer by registering it.
Cvar pointers (Pcvars) are much faster than normal cvars because it removes the cvar pointer lookup when using the functions.
__________________