AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Advanced Bans SQL (https://forums.alliedmods.net/showthread.php?t=172241)

kramesa 11-17-2011 17:23

Advanced Bans SQL
 
For me to install the advanced bans sql , which have to create tables? He will take on the configuration sql.cfg?

Sn!ff3r 11-17-2011 19:30

Re: Advanced Bans SQL
 
Yes.

kramesa 11-18-2011 16:04

Re: Advanced Bans SQL
 
What the table and what db i create?

8088 11-18-2011 18:40

Re: Advanced Bans SQL
 
It creates the table(s) for you. You should really read this (and post there).

MM3 12-04-2011 08:05

Re: Advanced Bans SQL
 
Hello everyone.
I tried to use this ban system.
I encountered with the problem when using sql mode:

PHP Code:

#if defined USING_SQL
PrepareTable()
{
    new 
query[128];
    
formatex(querysizeof(query) - 1,\
        
"CREATE TABLE IF NOT EXISTS `%s` (`%s` varchar(32) NOT NULL, `%s` varchar(35) NOT NULL, `%s` int(10) NOT NULL, `%s` varchar(32) NOT NULL, `%s` varchar(128) NOT NULL, `%s` varchar(64) NOT NULL, `%s` varchar(35) NOT NULL);",\
        
TABLE_NAMEKEY_NAMEKEY_STEAMIDKEY_BANLENGTHKEY_UNBANTIMEKEY_REASONKEY_ADMIN_NAMEKEY_ADMIN_STEAMID
        
);
    
//server_print(query);
    
SQL_ThreadQuery(g_sql_tuple"QueryCreateTable"query);


PHP Code:

new query[128]; 

is not enought to make sql create request, and server throughts "Query failed." message.
It is more meaningful to have
PHP Code:

new query[512]; 

Thanks

kramesa 01-12-2012 20:45

Re: Advanced Bans SQL
 
I have the error: Query Failed. The db, user, etc, is correct!

8088 01-12-2012 21:03

Re: Advanced Bans SQL
 
Without more information, that error can mean anything - from a corrupt table to a bug in the plugin. But like I said before, you should post it in the plugin's thread.


All times are GMT -4. The time now is 01:11.

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