solved String print help
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:
PHP Code:
PHP Code:
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. |
Re: String print help
There is no problem with your string usage. It isn't even possible for the string to get emptied since it is a constant.
See if this works: console_print( id , "test-print: %s", g_table); |
Re: String print help
Quote:
At first, i used g_table for SQL Request - SQL_PrepareQuery(g_mysql, "SELECT `id` FROM `%s` ...", g_table) It worked fine, but after 3 or 4 server-restarts it started return me an empty result. I've started print all argumentes of this request. Only g_table is empty ^^ Sql connection is ok(localhost). Another plugins works as usual. Quote:
P.S. - server platform - STEAM bug? |
Re: String print help
Are you sure it isn't being defined twice? (local and global)
PHP Code:
|
Re: String print help
Quote:
see cmd_current PHP Code:
|
Re: String print help
It has to be some type of bug because there is no way a constant value can be changed during run-time.
Try #define g_table "banned_ids" |
Re: String print help
Quote:
But it is still riddle for me. solved. Thx, Bugsy |
| All times are GMT -4. The time now is 15:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.