Posted by OverLogicOL
So, i don't like the default login and i made a text input for the username still nothing for the password because if i want the password i need the account to be registered... now my issue is on how can i make the "register" be with an INI file the documentation doesn't help enough and without the INI if i set a name in the input 12345 which is taken it won't login it will just say that it needs a password. so i want to know how can i make it so it's a checking on the INI about registering e.t.c.

Replies (3)

Last message on 13 Feb 2018

Yoto on 12 Feb 2018, 15:59:18
also if you want to show the "password box" only if the player with the name writed is registered, you can use the function "gms_login_player_has_account ()" or "gms_other_find_by_name ( name )", for example:

if (gms_other_find_by_name(global.nickname)) !=-1
Yoto on 12 Feb 2018, 15:42:41
I dont understand you question very well, but i can recomend that extension:https://marketplace.yoyogames.com/assets/3856/textbox
it have a function to get the text in the textbox and turn it into a variable, then you can use those variables to execute the loggin script with the GMS functions "gms_login_set_username and password.

So, you have to make the INI after the login, because in this way only if you put the password correctly the ini will be written, and when you open the game again you can use the ini to do a "fast join" like a "remember me" sistem. Remember that if you want to leave the player join without password you have to use call the function "gms_show_set_allowguest(true);".

There are two links that i recomend you to read:https://gamemakerserver.com/en/docs/script/gms_login_execute/ https://gamemakerserver.com/en/docs/article/auto_login/
OverLogicOL (Topicstarter) on 13 Feb 2018, 19:20:37
uhm you got everything wrong i am an high level coder trust me i know how to make stuff like that but i want to know how do i make an entire login/register thing without the default from the website and i am not talking about buttons i don't understand exactly the player INI and the INI that we have in this website that's what i want to see..