i try to put server informations in a array.
but the output confuse me.
PHP Code:
new server_address[2];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /test","test")
get_cvar_string("ip", server_address[0], 32);
get_cvar_string("port", server_address[1], 32);
}
public test()
{
server_cmd("say IP: %s", server_address[0]);
server_cmd("say Port: %s", server_address[1]);
return PLUGIN_CONTINUE;
}
the output is
Code:
IP: l27015
Port: 27015
the port is correct but not the ip what i do wrong? o.0
__________________