gms_connect

Usage: gms_connect ( )

Description

Connects to the server. You only need to call this script, when gms_info_isconnected returns false. This script will be executed automatically when the game starts.

Replies (13)

Last message on 14 Dec 2021

LustgotAttacks on 13 Dec 2021, 02:54:11
Whenever i create a new account in my game and login the loading just goes too long i've been waiting for 30 minutes it shouldn't be that long normally when accounts are getting created it only takes 5 seconds then new account is done

i think this has something to do with the gms or the connection i need help please.
Size43 (Administrator) on 14 Dec 2021, 16:29:22
Thanks for letting me know. I'm working on a fix.
MindWave on 14 Dec 2021, 01:51:33
Hi, did you ever find a resolution to this? I'm new to the game and also having this issue
LustgotAttacks on 14 Dec 2021, 06:00:42
I am waiting for Size43 to reply to my message to know why its happening
before it was fine but now its broken.

for more further questions add me on discord : Lust#9950
fatrocstudios on 10 Mar 2015, 06:42:10
I've had no problems connecting to the server and reading and writing INI files so far. A few hours ago, the game I had working suddenly stopped connecting to the server. Is there something that I don't understand or is there a problem with the server?
Size43 (Administrator) on 10 Mar 2015, 12:26:55
Sorry about that. I've downloaded the full log files that should contain information about why this happend, and I'm going to try and fix this.
tifongames on 10 Mar 2015, 13:02:22
thaks!!
DinoWattz on 7 Jul 2021, 04:49:40
Hey size, is there a way to disconnect from the server?
it's because I don't want the player to stay connected while playing in singleplayer mode
Size43 (Administrator) on 16 Jul 2021, 22:20:33
You can use gms_logout to log the player out of their account. There's no way to disconnect from the server, strangely enough. I'll add that to my todo list.
DinoWattz on 17 Jul 2021, 04:06:09
Ok, thanks size!
Dublann on 5 Apr 2017, 22:57:29
Hey,

When running in android and the app is running in the background, the game is disconnected to the server. In order to solve it, when openning again from background, I have in the controller object:
Step event
if room==room_main_centro or room==room_main_izq or room==room_main_dcha or room==room_main_chat or room==room_guarida
{
    if gms_info_isconnected()==false && alarm[3]=-1
    {
    alarm[3]=60
    }
    if gms_info_isconnected()==true && gms_info_isloggedin()==0
    {
    gms_login_set_password(global.pass1)
    gms_login_set_username(global.usuario)
    gms_login_execute(scr_login)
    }
}

Alarm 3 event
gms_connect()


This code is not connecting me again to the server. What is wrong?

THX!!
Size43 (Administrator) on 16 Apr 2017, 16:26:50
Does scr_login receive any error messages?
tifongames on 10 Mar 2015, 12:16:56
Hi Size43,
I have the same problem
Thanks.