Raised This Month: $ Target: $400
 0% 

Advanced Bans (Real Time) by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
xxxperts
Senior Member
Join Date: Oct 2013
Location: India
Old 11-19-2013 , 22:46   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1271

if i want to get the name of admin & player name who get ban than how..to get.it..plz help i am begineer
xxxperts is offline
fuegox
Junior Member
Join Date: Apr 2011
Old 11-22-2013 , 19:38   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1272

Hello I need Help with this Advanced bans. Since I'm getting an error and dunno how to fix it.
The problem is that when u put in my server amx_banlist , automatic the server kick u for Reliable channel overflow

My friend told me that in theory, as he can remind in this plugin was a "cvar" to specify the amount of bans that appears in amx_banlist, and set up a limit for each page to show.

So what's the cvar, and where can i add it to put a limit of 10 bans per page? Because I didnt find yet and always that i put amx_banlist kicks me..

Please ;)
fuegox is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-08-2013 , 05:20   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1273

I've got a problem with starting this script.

Code:
L 12/08/2013 - 18:03:30: [AMXX] Plugin ("advanced_bans.amxx") is setting itself as failed.
L 12/08/2013 - 18:03:30: [AMXX] Plugin says: Could not connect to database.
L 12/08/2013 - 18:03:30: [AMXX] Displaying debug trace (plugin "advanced_bans.amxx")
L 12/08/2013 - 18:03:30: [AMXX] Run time error 1: forced exit 
L 12/08/2013 - 18:03:30: [AMXX] [0] advanced_bans.sma::QueryCreateTable (line 404)
Added exec sql.cfg in amxx.cfg, sql.cfg has been edited, admin.sma was recompiled.
Mysql server's works properly, admin.amxx have been connected and updated his table.

Advanced Bans is not works properly!

Code:
#if defined USING_SQL PrepareTable() {     new query[128];         formatex(query, sizeof(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 ) COMMENT = 'Advanced Bans';", TABLE_NAME, KEY_NAME, KEY_STEAMID, KEY_BANLENGTH, KEY_UNBANTIME, KEY_REASON, KEY_ADMIN_NAME, KEY_ADMIN_STEAMID );         SQL_ThreadQuery(g_sql_tuple, "QueryCreateTable", query); } public QueryCreateTable(failstate, Handle:query, error[], errcode, data[], datasize, Float:queuetime) {     if( failstate == TQUERY_CONNECT_FAILED )     {         set_fail_state("Could not connect to database.");     }     else if( failstate == TQUERY_QUERY_FAILED )     {         set_fail_state("Query failed.");     }     else if( errcode )     {         log_amx("Error on query: %s", error);     }     else     {         LoadBans();     } } #endif

Last edited by ZASTRELIS; 12-08-2013 at 05:28.
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-14-2013 , 04:30   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1274

Hey! Somebody?!
ZASTRELIS is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 12-15-2013 , 00:52   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1275

What does this mean Could not connect to database. ?
Recheck your MySQL connection details.
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 12-15-2013 at 00:55.
GordonFreeman (RU) is offline
al3amri
Member
Join Date: May 2011
Old 12-17-2013 , 11:20   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1276

Quote:
Originally Posted by xxxperts View Post
if i want to get the name of admin & player name who get ban than how..to get.it..plz help i am begineer
type amx_banlist in console
al3amri is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-25-2013 , 02:14   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1277

Quote:
Originally Posted by ZASTRELIS View Post
I've got a problem with starting this script.

Code:
L 12/08/2013 - 18:03:30: [AMXX] Plugin ("advanced_bans.amxx") is setting itself as failed.
L 12/08/2013 - 18:03:30: [AMXX] Plugin says: Could not connect to database.
L 12/08/2013 - 18:03:30: [AMXX] Displaying debug trace (plugin "advanced_bans.amxx")
L 12/08/2013 - 18:03:30: [AMXX] Run time error 1: forced exit 
L 12/08/2013 - 18:03:30: [AMXX] [0] advanced_bans.sma::QueryCreateTable (line 404)
Added exec sql.cfg in amxx.cfg, sql.cfg has been edited, admin.sma was recompiled.
Mysql server's works properly, admin.amxx have been connected and updated his table.

Advanced Bans is not works properly!

Code:
#if defined USING_SQL PrepareTable() {     new query[128];         formatex(query, sizeof(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 ) COMMENT = 'Advanced Bans';", TABLE_NAME, KEY_NAME, KEY_STEAMID, KEY_BANLENGTH, KEY_UNBANTIME, KEY_REASON, KEY_ADMIN_NAME, KEY_ADMIN_STEAMID );         SQL_ThreadQuery(g_sql_tuple, "QueryCreateTable", query); } public QueryCreateTable(failstate, Handle:query, error[], errcode, data[], datasize, Float:queuetime) {     if( failstate == TQUERY_CONNECT_FAILED )     {         set_fail_state("Could not connect to database.");     }     else if( failstate == TQUERY_QUERY_FAILED )     {         set_fail_state("Query failed.");     }     else if( errcode )     {         log_amx("Error on query: %s", error);     }     else     {         LoadBans();     } } #endif
Who know why it's not work? :\
ZASTRELIS is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-25-2013 , 02:15   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1278

Quote:
Originally Posted by ZASTRELIS View Post
I've got a problem with starting this script.

Code:
L 12/08/2013 - 18:03:30: [AMXX] Plugin ("advanced_bans.amxx") is setting itself as failed.
L 12/08/2013 - 18:03:30: [AMXX] Plugin says: Could not connect to database.
L 12/08/2013 - 18:03:30: [AMXX] Displaying debug trace (plugin "advanced_bans.amxx")
L 12/08/2013 - 18:03:30: [AMXX] Run time error 1: forced exit 
L 12/08/2013 - 18:03:30: [AMXX] [0] advanced_bans.sma::QueryCreateTable (line 404)
Added exec sql.cfg in amxx.cfg, sql.cfg has been edited, admin.sma was recompiled.
Mysql server's works properly, admin.amxx have been connected and updated his table.

Advanced Bans is not works properly!

Code:
#if defined USING_SQL PrepareTable() {     new query[128];         formatex(query, sizeof(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 ) COMMENT = 'Advanced Bans';", TABLE_NAME, KEY_NAME, KEY_STEAMID, KEY_BANLENGTH, KEY_UNBANTIME, KEY_REASON, KEY_ADMIN_NAME, KEY_ADMIN_STEAMID );         SQL_ThreadQuery(g_sql_tuple, "QueryCreateTable", query); } public QueryCreateTable(failstate, Handle:query, error[], errcode, data[], datasize, Float:queuetime) {     if( failstate == TQUERY_CONNECT_FAILED )     {         set_fail_state("Could not connect to database.");     }     else if( failstate == TQUERY_QUERY_FAILED )     {         set_fail_state("Query failed.");     }     else if( errcode )     {         log_amx("Error on query: %s", error);     }     else     {         LoadBans();     } } #endif
Quote:
Originally Posted by GordonFreeman (RU) View Post
What does this mean Could not connect to database. ?
Recheck your MySQL connection details.
Read post.

Look this script, maybe it isn't version for DB?)
Attached Files
File Type: sma Get Plugin or Get Source (advanced_bans.sma - 554 views - 51.4 KB)

Last edited by ZASTRELIS; 12-25-2013 at 02:19.
ZASTRELIS is offline
Critfame
Junior Member
Join Date: Nov 2013
Old 12-25-2013 , 08:33   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1279

Quote:
Originally Posted by Exolent[jNr] View Post
Advanced Bans (Real Time)
by Exolent
I would love to make a Bulgarian translation if I have your permission
Critfame is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 12-25-2013 , 09:41   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #1280

It's original bugged script. Tested with:
Code:
mysql  Ver 14.14 Distrib 5.5.34, for debian-linux-gnu (x86_64) using readline 6.2

It's can't connect to mysql server

Last edited by ZASTRELIS; 12-27-2013 at 07:21.
ZASTRELIS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:24.


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