dbi_mysql doesnt see any tables /!\
Hello!
Is it possible to detect an extra string in clcmd command? e.g. USAGE: /command <reason> /command Any text here So how can I output the 'Any text here' part? Thanks. |
Re: CLCMD with extra string
Code:
public plugin_init() { |
Re: CLCMD with extra string
Thanks, that part works well, but now I`m a bit stuck with the mysql part.
I'm trying to use sqlite module, so I enabled it in the modules.ini file. But it seems that my plugin can't find any tables in my database. I'm also using the 'mysql' module for amxbans. Console output: [CALLADMIN]: Connected succesfully (localhost,CSuser,CSuser,*mypass*)! [CALLADMIN]: Table Does not Exists! Table really exists: http://nismo.boxg.lv/images/other/table_exists.png Whole code: http://pastebin.com/me5f515f Thanks! |
Re: dbi_mysql doesnt see any tables /!\
Quote:
|
Re: dbi_mysql doesnt see any tables /!\
I'm no expert but I think this part need some changes:
Code:
if (equali(komanda, "/calladmin")) { |
Re: dbi_mysql doesnt see any tables /!\
As I said, that part is running good, output for 'text' is ok.
The problem is with 'sqlite' module. First of all, I get [CALLADMIN]: Table Does not Exists! from if(!sqlite_table_exists(mysql, "server_calladmin")) server_print("[CALLADMIN]: Table Does not Exists!") And if I try to run the command e.g. '/calladmin asdf' i get this: [CALLADMIN]: no such table: server_calladmin|1 It's something to do with sqlite. Also updated the 'sqlite' library's for my server, the same result. The same with any other tables, databases, users. |
| All times are GMT -4. The time now is 17:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.