Hello all.
I have a "stupid" problem with string printing and i don't know how to solve it.
I have a global
constant variable named
g_table(the only variable named g_table in the script) that contains string
"banned_ids".
PHP Code:
//...
new const g_table[] = "banned_ids";
//...
I added test-print in
plugin_init().
PHP Code:
//...
new const g_table[] = "banned_ids";
public plugin_init()
{
register_plugin("amx_banid", "1.0", "Radiance");
register_concmd("amx_banid", "cmd_banid", ADMIN_BAN, "<name or #userid> <minutes>");
server_print("test-print: %s", g_table);
//...
And also i added test-print into admin command function.
PHP Code:
//...
public cmd_banid(id, level, cid)
{
if (!cmd_access(id, level, cid, 3))
{
return 1;
}
client_print(id, print_console, "test-print: %s", g_table);
//...
From
plugin_init() print i got:
test-print: banned_ids
From
cmd_banid() print i got:
test-print:
g_table is empy in the second case. Why?
And there is no errors/debug in the server's/client's console.
Need help ^^
Thanks in advance.
Sorry for bad English.