Zeex / sampgdk

Write SA-MP gamemodes in C/C++
http://zeex.github.io/sampgdk
Apache License 2.0
156 stars 83 forks source link

after player recconnects his ID is 1159396172 and reason 1152356560 #23

Closed grasmanek94 closed 11 years ago

grasmanek94 commented 11 years ago

PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerDisconnect(int playerid,int reason)

Please check it out.

Zeex commented 11 years ago

What do you mean by "reconnects"? Do you kill the server and restart, gmx it or kick the player?

grasmanek94 commented 11 years ago

reconnect after a "timeout". (so gta nor the server didn't crash)

2012/12/7 Zeex notifications@github.com

What do you mean by "reconnects"? Do you kill the server and restart, gmx it or kick the player?

— Reply to this email directly or view it on GitHubhttps://github.com/Zeex/sampgdk/issues/23#issuecomment-11137074.

Zeex commented 11 years ago

Could you post some steps and code required in order to reproduce this?

grasmanek94 commented 11 years ago

using RouteConnectorPlugin 181 compiled with your newest GDK should do. reconnect a few times to the server (timeout the player, ban unban).

2012/12/8 Zeex notifications@github.com

Could you post some steps and code required in order to reproduce this?

— Reply to this email directly or view it on GitHubhttps://github.com/Zeex/sampgdk/issues/23#issuecomment-11157187.

grasmanek94 commented 11 years ago

the "cq" folder has a concurrent queue for linux. It should work when you add that as include directory

grasmanek94 commented 11 years ago

however the issue happend on windows to me

grasmanek94 commented 11 years ago

(use VC++ 11 compiler or a C++ 11 equivalent)

grasmanek94 commented 11 years ago

also will there be a sampgdk library which only gives you ability to call natives? so no need for public support? (so the system doesn't have to install sampgdk, at least I would only need GetPlayerPos)

Zeex commented 11 years ago

Unfortunately I couldn't reproduce this on my own. Could you record a dump of the server process when the issue occurs?

In case you don't know how to do that:

grasmanek94 commented 11 years ago

hm It's hard to reproduce, when I succeed to do it again I'll provide the dump

2012/12/9 Zeex notifications@github.com

Unfortunately I couldn't reproduce this on my own. Could you record a dump of the server process when the issue occurs?

In case you don't know how to do that:

  • Download and instal Process Explorer: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
  • Set a conditional breakpoint inside OnPlayerDisconnect in Visual Studio using "playerid > 1000" as a condition
  • When the breakpoint gets hit, create a dump of samp-server.exe by right-clicking on it in Process Explorer and selecting Create Dump -> Create Full Dump

    — Reply to this email directly or view it on GitHubhttps://github.com/Zeex/sampgdk/issues/23#issuecomment-11170962.