Raised This Month: $ Target: $400
 0% 

WTF with register_cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lightokun
Member
Join Date: Oct 2009
Old 06-09-2010 , 03:36   WTF with register_cvar
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>

#pragma semicolon 1

new db_host;

public plugin_init()
{
    register_plugin("Light_plugin","1.0","Light");
    
    db_host = register_cvar("db_host","localhost");
    
    log_amx("HOST: %s", db_host);
}
log_amx prints in console:
Code:
L 06/09/2010 - 11:33:57: [light_bans.amxx] HOST: Light_plugin
It must print HOST: localhost
I'm in dispair
Lightokun 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 05:17.


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