This site is a testing version, but all data is shared with the live forum.


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

"client_disconnect forward has been disabled" error ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LAWLIET
Member
Join Date: Jan 2015
Old 10-22-2015 , 10:03   "client_disconnect forward has been disabled" error ?
Reply With Quote #1

Hi, when I start up my server I am getting an log at the console :
client_disconnect forward has been disabled

And the plugins which have the forward just the part of "client_disconnect" does not work ...

Any suggestions?
LAWLIET is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-22-2015 , 11:18   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #2

Quote:
Originally Posted by LAWLIET View Post
Hi, when I start up my server I am getting an log at the console :
client_disconnect forward has been disabled

And the plugins which have the forward just the part of "client_disconnect" does not work ...

Any suggestions?
Reinstall using amxmodx 1.8.2 maybe.
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-22-2015 , 12:38   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #3

@LAWLIET: Make sure you did copy the whole /data/gamedata directory on your server, those file are mandatory. "client_disconnect" is by the way deprecated in 1.8.3-dev, use "client_disconnected" which is guaranteed to be paired with client_connect. Don't forget to stop/Start your server since such files are read one time at server start.


@SkumTomteN what the hell you're suggesting him.
__________________

Last edited by Arkshine; 10-22-2015 at 12:43.
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2015 , 20:25   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
"client_disconnect" is by the way deprecated in 1.8.3-dev, use "client_disconnected" which is guaranteed to be paired with client_connect.
That is confusing. Changing the tense on one but not the other makes them not seem like they are paired. "connect" and "disconnect" are both present tense while "connected" and "disconnected" are both past tense.

What made client_disconnect not "paired" with client_connect? I'm curious.
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-23-2015 , 03:03   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #5

Not really the choice, we had to keep backward compatibility as always. We proposed at first client_drop, called only when player is dropped by engine (SV_DropClient, and by the way, pfnClientDisconnect is called inside), but because engine calls manually pfnClientDisconnect at specific place outside of this SV_ function, this means that from a pawn plugin, to catch all situations, you would need to hook client_disconnect and client_drop. This is awkward. That's why at the end we're using client_disconnected as a drop-in replacement of client_disconnect, this makes more sense and is more friendly for coder.

client_disconnect may not be be called in situation where a client got timeout before spawning in server, like while the loading process.
__________________

Last edited by Arkshine; 10-23-2015 at 03:44.
Arkshine is offline
Old 10-23-2015, 03:03
Arkshine
This message has been deleted by Arkshine. Reason: lag
LAWLIET
Member
Join Date: Jan 2015
Old 10-23-2015 , 11:13   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #6

Yes, I am using 1.8.3 dev.

So I have to change the forward in my plugins to :
client_disconnected
as I understood ?
LAWLIET is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-06-2015 , 07:01   Re: "client_disconnect forward has been disabled" error ?
Reply With Quote #7

Sure.
__________________
Arkshine 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 15:32.


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