Raised This Month: $ Target: $400
 0% 

get_cvar_num,get_pcvar_num


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 06-06-2009 , 16:17   get_cvar_num,get_pcvar_num
Reply With Quote #1

is that the same?
or which way is better?
PHP Code:
new g_something

public plugin_init()
{
    
g_something register_cvar("I_am_cvar","0")
}

public function(
id)
{
    if(
get_pcvar_num(g_something))
    {
        ...    
//code
    
}

PHP Code:
public plugin_init()
{
    
register_cvar("I_am_cvar","0")
}

public function(
id)
{
    if(
get_cvar_num("I_am_cvar"))
    {
        ...    
//code
    
}

__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
 


Thread Tools
Display Modes

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 13:47.


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