Quote:
Originally Posted by The Specialist
a pcvar is basicly amxmodx's verrsion of a pointer . hooking a varaible directly to cvars . the only time you need to use them is if you use a get_cvar_num("whatever") more then once. if you only use the cvars once in a script theres no need to make a varaible to handle it . becasue everytime a varaible is declared , memory is alocated to handle the variable. so if you use the same cvar more then once , you can use a "pointer" to get and find the varaibles easyier . 
|
It's actually
only faster if your plugin did not declare the cvar,
and during the entire execution time it is only fetched once.
Otherwise, pcvars are faster.
__________________