Raised This Month: $ Target: $400
 0% 

3rd party cvar not loaded on plugin_cfg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-16-2013 , 10:57   3rd party cvar not loaded on plugin_cfg
Reply With Quote #1

So I'm registering a cvar in plugin_init:

Code:
register_cvar( "ac_server_table", "classic" )

then trying to get its value on plugin_cfg:

Code:
get_cvar_string( "ac_server_table", g_Server, charsmax( g_Server ) )

Which often gives me the default cvar value. I only managed to make this return the right value each time by delaying it by two seconds, which is not reliable and stupid.

Any ideas?
Backstabnoob 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 15:46.


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