AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What's wrong with plmenu.amxx? o_O (https://forums.alliedmods.net/showthread.php?t=220124)

Mofforg 07-07-2013 08:51

What's wrong with plmenu.amxx? o_O
 
I have this is log:

PHP Code:

L 07/07/2013 15:47:22: [CSTRIKEInvalid player 19
L 07
/07/2013 15:47:22: [AMXXRun time error 10 (plugin "plmenu.amxx") (native "cs_set_user_team") - debug not enabled!
L 07/07/2013 15:47:22: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes). 

and after 2 min server crashed:

PHP Code:

Uploading dump (in-process) [proxy '']
/
tmp/dumps/crash_20130707154958_1.dmp
success 
no
error
:  Couldn't connect to server
Segmentation fault (core dumped) 

PHP Code:

CRASHSun Jul  7 15:50:07 MSK 2013 

Using default plmenu.amxx from amxx 1.8.2-dev

YamiKaitou 07-07-2013 08:55

Re: What's wrong with plmenu.amxx? o_O
 
Why won't you enable debug before you report these....

And what makes you think the crash is releated to that message?

Mofforg 07-07-2013 08:59

Re: What's wrong with plmenu.amxx? o_O
 
Quote:

Originally Posted by YamiKaitou (Post 1985349)
Why won't you enable debug before you report these....

And what makes you think the crash is releated to that message?

Because i have few months uptime. And only now it crashes and this is the only error i see (i never see any errors, i use less plugins and all with sma)

Arkshine 07-07-2013 09:12

Re: What's wrong with plmenu.amxx? o_O
 
The crash is something else. It won't crash because a plugin throws an error. It tells just a player was disconnected when a command has been used on him.

Mofforg 07-07-2013 09:22

Re: What's wrong with plmenu.amxx? o_O
 
Quote:

Originally Posted by Arkshine (Post 1985365)
The crash is something else. It won't crash because a plugin throws an error. It tells just a player was disconnected when a command has been used on him.

Why in default plugins is not prevented such problem?

Arkshine 07-07-2013 09:35

Re: What's wrong with plmenu.amxx? o_O
 
That's not something which should happen at this time, as the player is disconnected right after pressing some key into a menu.

To be disconnected before menu callback is done, it's most likely because of others plugins kicking or player dropped by server for some reason. Rare situation, it won't hurt though to add some check to make sure a player is connected.

Mofforg 07-07-2013 09:49

Re: What's wrong with plmenu.amxx? o_O
 
Quote:

Originally Posted by Arkshine (Post 1985386)
That's not something which should happen at this time, as the player is disconnected right after pressing some key into a menu.

To be disconnected before menu callback is done, it's most likely because of others plugins kicking or player dropped by server for some reason. Rare situation, it won't hurt though to add some check to make sure a player is connected.

It will make log. Log should be used only if it's really an error.

Really bad there are not enough checks.

If any plugin rely on plmenu it'll crash the server. I think there are something wrong. Server should not crash right after this.

ConnorMcLeod 07-07-2013 09:51

Re: What's wrong with plmenu.amxx? o_O
 
Make sure you don't have plugins that kick players improperly, as only sending SVC_DISCONNECT message, for example.

Arkshine 07-07-2013 09:52

Re: What's wrong with plmenu.amxx? o_O
 
Quote:

If any plugin rely on plmenu it'll crash the server. I think there are something wrong. Server should not crash right after this.
Again, crash IS NOT because of this "plugin" error.

Mofforg 07-07-2013 09:52

Re: What's wrong with plmenu.amxx? o_O
 
Quote:

Originally Posted by ConnorMcLeod (Post 1985402)
as only sending SVC_DISCONNECT message, for example.

Sorry i don't understand these words, they have no sense.

How to kick correctly?

Mostly i am using kick #id to kick players. Is that correct? Or how to do it correctly?


All times are GMT -4. The time now is 06:21.

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