Raised This Month: $ Target: $400
 0% 

Cvars, Pcvars, & inc files.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 06-09-2014 , 12:36   Cvars, Pcvars, & inc files.
Reply With Quote #1

Hello all.

I had a doubt, since pcvars are faster than cvars and efficient too. Can you please explain me what's the difference between pcvars and cvars? I've understood this --->

Quote:
Originally Posted by schmurgel1983 View Post
pcvar:
PHP Code:
new pcvar

pcvar 
register_cvar("my_pcvar""1"
cvar:
PHP Code:
register_cvar("my_cvar""1"
But how does it make pcvars more efficient?

About inc files, here's hamsandwich module's inc file.
Spoiler


I had requested a respawn plugin few days ago, that plugin had this code

PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid
But in inc file, its like this

PHP Code:
native ExecuteHamB(Ham:function, thisany:...); 
So I did not get this. What does "Ham:function" "this" "any" means?
Also same with default include files

Thanks.
__________________
EthicalHacker007 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