SA-MP Forums Archive
Player disconnects from the game - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player disconnects from the game (/showthread.php?tid=443049)



Player disconnects from the game - vovalutsk - 10.06.2013

The problem was.Players currently playing, well, every 5-10 minutes, 10-20 percent of players disconnect of the game and does not go 5-10 minutes. Plug in fashion mysql r7, streamer, sccanf.* Please tell me what could be the problem


I translated in ******, sorry for the ignorance


Re: Player disconnects from the game - vovalutsk - 10.06.2013

ps I'm not asking for a solution, but at least say what could be the problem.Well, for the decision will be very grateful.


Re: Player disconnects from the game - DetoNater - 10.06.2013

your details are not valid, give us more info, we hadn't this problem before..


Re: Player disconnects from the game - vovalutsk - 10.06.2013

dell


Re: Player disconnects from the game - vovalutsk - 10.06.2013

It happened sometimes that the car is not disconnected


Re: Player disconnects from the game - vovalutsk - 10.06.2013

CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, -1);

Can I put at the end of -1?


Re: Player disconnects from the game - Scrillex - 10.06.2013

-1 means that car aint respawned... so basically it aint a problem. But you need to see what kind of error ... the best thing would be some picture or something in which exact moment it's happening + If it's on entering car it could be you meesed something up when player enters car or in driver seat.


Re: Player disconnects from the game - vovalutsk - 10.06.2013

if(newstate == PLAYER_STATE_DRIVER)
{
new model = GetPlayerVehicleSeat(playerid);
if(model != 12
{
if(!model)
{
model = GetVehicleModel(GetPlayerVehicleID(playerid));
if(!(400 <= model <= 611) || MaxPassengers[model - 400 >>> 3] >>> ((model - 400 & 7) << 2) & 0xF == 15) return Kick(playerid);
}
else return Kick(playerid);
}
}


static const MaxPassengers[27] =
{
0x10331113, 0x11311131, 0x11331313, 0x80133301,
0x1381F110, 0x10311103, 0x10001F10, 0x11113311,
0x13113311, 0x31101100, 0x30001301, 0x11031311,
0x11111331, 0x10013111, 0x01131100, 0x11111110,
0x11100031, 0x11130221, 0x33113311, 0x11111101,
0x33101133, 0x101001F0, 0x03133111, 0xFF11113F,
0x13330111, 0xFF131111, 0x0000FF3F


Re: Player disconnects from the game - Scrillex - 10.06.2013

Thats all what you have? on the PlayerState?


Re: Player disconnects from the game - vovalutsk - 10.06.2013

dell