Raised This Month: $ Target: $400
 0% 

Cvars, Pcvars, & inc files.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 06-09-2014 , 12:42   Re: Cvars, Pcvars, & inc files.
Reply With Quote #2

You are storing a "pointer" to the cvar in a variable. This way, when you reference the cvar again later, you are not making AMX Mod X search through the giant list of cvars a second time. Rather than saying to AMX "hey can you check the value of that cvar again? I forgot where it is, so you'll have to look through the list again for the right cvar" you are instead saying "Hey, can you check the value of that cvar again? It was the 321st cvar last time we checked." or something similar.

https://forums.alliedmods.net/showthread.php?t=215635

The include is showing you what is required in the native call. For example, that particular native requires you to specify a Ham function, an entity on which the function is being executed, followed by any number of parameters of any type.

http://www.amxmodx.org/funcwiki.php?go=module&id=24
__________________

Last edited by ddhoward; 06-09-2014 at 12:44.
ddhoward is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode