AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   WTF with register_cvar (https://forums.alliedmods.net/showthread.php?t=129118)

Lightokun 06-09-2010 03:36

WTF with register_cvar
 
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 06-09-2010 04:17

Re: WTF with register_cvar
 
Oh shi~
I'm dumb.
Close the topic, please.


All times are GMT -4. The time now is 05:17.

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