SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/02/2018, 01:52 PM   #1
Lirbo
Gangsta
 
Lirbo's Avatar
 
Join Date: Jan 2014
Posts: 503
Reputation: 8
Default Can't connect to my server. (while using a specific gamemode)

[15:52:22] {FFFFFF}SA-MP {B9C9BF}0.3.DL-R1 {FFFFFF}Started
[15:52:25] Connecting to 127.0.0.1:7777...
[15:52:26] Connected. Joining the game...
[15:53:28] Server closed the connection.

samp-server.exe: Kicking 127.0.0.1 because they didn't logon the game.

yesterday it worked just fine and now this shit happens, I turned my computer off right after i finished scripting & testing yesterday and when I logged today the issue started

and no I didn't forget to compile before I shutted down my pc
Lirbo is offline   Reply With Quote
Old 21/02/2018, 02:18 PM   #2
Ritzy2K
High-roller
 
Ritzy2K's Avatar
 
Join Date: Jun 2014
Location: India
Posts: 1,548
Reputation: 170
Default Re: Can't connect to my server. (while using a specific gamemode)

Check your script for the line which says "kicking %s because they didn't logon the game."?

Seems more like a script feature to me.
__________________
Ritzy2K is offline   Reply With Quote
Old 21/02/2018, 02:19 PM   #3
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 349
Reputation: 28
Default Re: Can't connect to my server. (while using a specific gamemode)

samp-server.exe: Kicking 127.0.0.1 because they didn't logon the game.

Maybe Login problem in your script. Check you script or use Crashdetect.
UFF is offline   Reply With Quote
Old 21/02/2018, 02:25 PM   #4
Lirbo
Gangsta
 
Lirbo's Avatar
 
Join Date: Jan 2014
Posts: 503
Reputation: 8
Default Re: Can't connect to my server. (while using a specific gamemode)

Quote:
Originally Posted by UFF View Post
samp-server.exe: Kicking 127.0.0.1 because they didn't logon the game.

Maybe Login problem in your script. Check you script or use Crashdetect.
i tried once to install crashdetect but i didn't understand how to do it
Lirbo is offline   Reply With Quote
Old 21/02/2018, 02:27 PM   #5
rfr
Banned
 
Join Date: Nov 2017
Posts: 229
Reputation: 43
Default Re: Can't connect to my server. (while using a specific gamemode)

you sure the server and client is the same samp version?
rfr is offline   Reply With Quote
Old 21/02/2018, 02:29 PM   #6
Lirbo
Gangsta
 
Lirbo's Avatar
 
Join Date: Jan 2014
Posts: 503
Reputation: 8
Default Re: Can't connect to my server. (while using a specific gamemode)

Quote:
Originally Posted by rfr View Post
you sure the server and client is the same samp version?
yes.
Lirbo is offline   Reply With Quote
Old 21/02/2018, 02:33 PM   #7
rfr
Banned
 
Join Date: Nov 2017
Posts: 229
Reputation: 43
Default Re: Can't connect to my server. (while using a specific gamemode)

like ritzy said search for "didn't logon the game" in your gamemode and give us the code for that
rfr is offline   Reply With Quote
Old 21/02/2018, 04:22 PM   #8
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,920
Reputation: 258
Default Re: Can't connect to my server. (while using a specific gamemode)

"Kicking x.x.x.x because they didn't logon the game." is a SAMP sided message...
Probably you have an infinity loop or a code which take too much time to run. Comment part by part your code and do some tests.
__________________
actor_plus - v5.0.2
I'm a goner, somebody catch my breath,
I'm a goner, somebody catch my breath
Dayrion is offline   Reply With Quote
Old 21/02/2018, 09:22 PM   #9
Ritzy2K
High-roller
 
Ritzy2K's Avatar
 
Join Date: Jun 2014
Location: India
Posts: 1,548
Reputation: 170
Default Re: Can't connect to my server. (while using a specific gamemode)

Sorry, didn't knew this was SA-MP feature.

Anyway, I did a simple ****** search for you. Apparently, because you couldn't, and here's what I found.

Quote:
Originally Posted by Kalcor View Post
No other server has reported this. At least, not yet.

The 'Kicking {} because they didn't logon to the game.' message is normal. It means the client is too slow to connect and probably has a high amount of packet loss. In previous versions of the SA-MP server, the same problem could happen, although the player would eventually just have to quit and try reconnecting.

Are you sure there aren't external factors causing this problem? There could some type of packet filtering in the firewall. The physical server which hosts the game server could be under attack.

You can PM me a bigger server log if you like. If most servers work fine and there are problems like this, it usually turns out that it's not caused by SA-MP.
But, again I'm 99 percent sure an infinite loop is causing that issue. (Like Dayrion said.)
__________________
Ritzy2K is offline   Reply With Quote
Old 21/02/2018, 09:28 PM   #10
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,651
Reputation: 558
Default Re: Can't connect to my server. (while using a specific gamemode)

Wait for the player to fully connect before executing functions like Streamer_UpdateEx (which can cause this issue if there are (for example) a lot of textured objects).
Check for infinite or very long loops in OnPlayerConnect, or other code that can hang the server for a bit (non-threaded (My)SQL queries or file writes/reads).
NaS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Problem] Can't load/connect specific server's IP Plovix Client Support 13 19/09/2013 03:06 PM
Can't COnnect to a Specific server Shadyalex Client Support 10 06/02/2010 11:08 PM
Can't connect specific server Pive Client Support 2 13/07/2009 10:31 AM
I see some server connect have players country..how to add in gamemode ? simonall2 Help Archive 2 08/06/2009 02:25 PM


All times are GMT. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.