09.12.2011, 23:22
When I spawn, I get kicked. Simple as. I just see 'Server closed the connection'. It doesn't happen on 0.3d R1 (original). I tested with both clients (R1 and R2) on the R1 server. It IS a server problem. I am using Incognito's streamer, BlueG's mySQL, MapAndreas and sscanf2 (plugins).
I commented out ALL Kick()'s and disabled all filterscripts, and it still happened. It's either SA:MP or a plugin, and I'm pretty sure none of the plugins use Kick().
I saw in the 0.3d R2 topic that a bug with slots not freeing up after players being kicked was fixed, but this seems to have caused this new problem.
It doesn't, however, kick me on a blank gamemode.
EDIT: I did some debugging, turns out I get kicked _BEFORE_ OnPlayerSpawn is called - how is that possible?
EDIT #2:
More information to perhaps help Kalcor idenfity the problem:
When players connect, I SpawnPlayer() then TogglePlayerSpectating(playerid, true);
Then I set their camera etc. and show a dialog for login.
It all works fine. Then I use TogglePlayerSpectating(playerid, false) under OnDialogResponse when they login. This is where the problem seems to be, but Kick() is not used in ANY dialogs!
The last line in OnDialogResponse (in the block for 'if(dialogid == DIALOG_LOGIN)' is a clientmessage, and it gets sent before I get kicked.
I commented out ALL Kick()'s and disabled all filterscripts, and it still happened. It's either SA:MP or a plugin, and I'm pretty sure none of the plugins use Kick().
I saw in the 0.3d R2 topic that a bug with slots not freeing up after players being kicked was fixed, but this seems to have caused this new problem.
It doesn't, however, kick me on a blank gamemode.
EDIT: I did some debugging, turns out I get kicked _BEFORE_ OnPlayerSpawn is called - how is that possible?
Quote:
OnDialogResponse - (2 1 -1 #) OnPlayerDisconnect OnPlayerSpawn |
More information to perhaps help Kalcor idenfity the problem:
When players connect, I SpawnPlayer() then TogglePlayerSpectating(playerid, true);
Then I set their camera etc. and show a dialog for login.
It all works fine. Then I use TogglePlayerSpectating(playerid, false) under OnDialogResponse when they login. This is where the problem seems to be, but Kick() is not used in ANY dialogs!
The last line in OnDialogResponse (in the block for 'if(dialogid == DIALOG_LOGIN)' is a clientmessage, and it gets sent before I get kicked.