Raised This Month: $12 Target: $400
 3% 

[ANY] Ban Disconnected Players [UPDATED 1/3/17]


Post New Thread Reply   
 
Thread Tools Display Modes
zeroibis
Veteran Member
Join Date: Jun 2007
Old 11-02-2015 , 06:53   Re: [ANY] Ban Disconnected Players
Reply With Quote #21

Strange, is it giving you any error like array index out of bounds when it drops the digit?
__________________
zeroibis is offline
MsNs7
Member
Join Date: Oct 2012
Location: Greece
Old 11-02-2015 , 12:19   Re: [ANY] Ban Disconnected Players
Reply With Quote #22

Quote:
Originally Posted by zeroibis View Post
Strange, is it giving you any error like array index out of bounds when it drops the digit?
Where can i check that?
__________________
Setti Steam Group
...you can achieve immortality, simply by doing one great thing...
MsNs7 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 11-02-2015 , 14:01   Re: [ANY] Ban Disconnected Players
Reply With Quote #23

Quote:
Originally Posted by MsNs7 View Post
Where can i check that?
Error logs
headline is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 11-02-2015 , 16:16   Re: [ANY] Ban Disconnected Players
Reply With Quote #24

Quote:
Originally Posted by MsNs7 View Post
There is a problem just like in mad_hamster's plugin:
SteamID: STEAM_1:0:1615856619
At SourceBans: STEAM_1:0:161585661

As you can see, both plugins don't save the last digit of the SteamID. Can this be fixed?
Maybe you could try this:

On line 80: char steamid[32], minutes[10], reason[256];
nomy is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 11-03-2015 , 07:32   Re: [ANY] Ban Disconnected Players
Reply With Quote #25

hi

I have some error in my log file

Quote:
L 11/01/2015 - 15:44:06: [SM] Exception reported: Client index 0 is invalid
L 11/01/2015 - 15:44:06: [SM] Blaming plugin: hl_bandisconnected.smx
L 11/01/2015 - 15:44:06: [SM] Call stack trace:
L 11/01/2015 - 15:44:06: [SM] [0] GetClientAuthId
L 11/01/2015 - 15:44:06: [SM] [1] Line 59, hl_bandisconnected.sp::Event_PlayerDisconnect ()
L 11/01/2015 - 16:15:26: [SM] Exception reported: Client index 0 is invalid
L 11/01/2015 - 16:15:26: [SM] Blaming plugin: hl_bandisconnected.smx
L 11/01/2015 - 16:15:26: [SM] Call stack trace:
L 11/01/2015 - 16:15:26: [SM] [0] GetClientAuthId
L 11/01/2015 - 16:15:26: [SM] [1] Line 59, hl_bandisconnected.sp::Event_PlayerDisconnect ()
L 11/01/2015 - 20:54:42: SourceMod error session started
L 11/01/2015 - 20:54:42: Info (map "awp_lego_2") (file "errors_20151101.log")
L 11/01/2015 - 20:54:42: [SM] Exception reported: Client index 0 is invalid
L 11/01/2015 - 20:54:42: [SM] Blaming plugin: hl_bandisconnected.smx
L 11/01/2015 - 20:54:42: [SM] Call stack trace:
L 11/01/2015 - 20:54:42: [SM] [0] GetClientAuthId
L 11/01/2015 - 20:54:42: [SM] [1] Line 59, hl_bandisconnected.sp::Event_PlayerDisconnect ()
GoRiLliAz is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 11-03-2015 , 10:45   Re: [ANY] Ban Disconnected Players
Reply With Quote #26

Quote:
Originally Posted by GoRiLliAz View Post
hi

I have some error in my log file

What version are you using
headline is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 11-04-2015 , 07:52   Re: [ANY] Ban Disconnected Players
Reply With Quote #27

There are still problems with sourcebans not showing name of the banned player.
also, how many players are stored in the menu ?
__________________

Last edited by misterG; 11-04-2015 at 08:05.
misterG is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 11-04-2015 , 13:06   Re: [ANY] Ban Disconnected Players
Reply With Quote #28

Quote:
Originally Posted by misterG View Post
There are still problems with sourcebans not showing name of the banned player.
also, how many players are stored in the menu ?
Sourcebans will never have the player's name in the ban. Its essentially using "sm_addban"
headline is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 11-04-2015 , 13:18   Re: [ANY] Ban Disconnected Players
Reply With Quote #29

Quote:
Originally Posted by Headline22 View Post
Sourcebans will never have the player's name in the ban. Its essentially using "sm_addban"
Your plugin seems to store player's name, why can't it be added to sourebans
Also, i had a second question
__________________
misterG is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 11-04-2015 , 14:28   Re: [ANY] Ban Disconnected Players
Reply With Quote #30

Quote:
Originally Posted by misterG View Post
Your plugin seems to store player's name, why can't it be added to sourebans
Also, i had a second question
Through the sm_addban command, you cannot input the players name.

The players' names are getting stored in an ADT array that is parsed when the admin opens the menu. It gets the array size and loops through all the cells, and the corresponding adt array that holds names is used.

Cell 32 of Names is the same person as cell 32 of steamid

Last edited by headline; 11-04-2015 at 14:31.
headline is offline
Reply


Thread Tools
Display Modes

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 04:10.


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