gms_register
Usage: gms_register ( username, password, password_again, mail, callback )
Description
Registers the given player. Calls the callback script when the server has responded to the registration request. argument0 (for the callback script) is set to re_ok or one of the other re_* constants.
username can only contain alphanumeric characters and '_'.
Replies (15)
Last message on 30 Aug 2020
Hi Size,
Is there a way to modify the username/password/email or directly remove them through code or through the developer options in the web?
Also, is there a way to see the users registered in your game? I only find them if achievement is used
Is not about banning a player, is about modifying/removing his access, without the need to be connected to the game.
Thx
if the password is in numeric format it cannot register and give an error
Size43
(Administrator)
on
15 Dec 2018, 19:04:04
What does the error say?
I followed Getting Started and using the built-in login screen, but nothing happened when I try to register or login, not even as a guest. I tried just putting
"gms_register('administrator','password','password','MY EMAIL',CALLBACK SCRIPT)"
in obj_login CREATE event. It doesn't seem to register anyway. It doesn't show up in Player INI's.
What am I doing wrong?
Size43
(Administrator)
on
27 Feb 2015, 20:20:14
There was a problem earlier today which prevented anyone from logging in. This should be fixed.
Ajay
on
8 Dec 2014, 08:45:35
Hi Admin,
Please add feedback function in extension to user can send feedback.
Size43
(Administrator)
on
8 Dec 2014, 20:20:51
Feel free to post suggestions in the comment sections below a relevant script/tutorial/news item or mail me at gamemakerserver@outlook.com ;)
Ajay
on
8 Dec 2014, 22:05:36
No, i mean feedback is for our customers.if our customers found any problem than they need to send feedback.so its possible to storage Feedbacks on this server?
Size43
(Administrator)
on
9 Dec 2014, 18:10:54
Apologies for misunderstanding. Currently, it's possible to enable reactions on your game page, which will allow other users to give feedback/comment on your game, but that's about it.
It'd be possible to write a custom, in-game system that uses the GameINIs, too. ;)
Ajay
on
10 Dec 2014, 07:42:29
Yes, you are right. Thanks for the idea. :)
...By the way, is there a way to not include the email address, or let the same email be re-used?
Size43
(Administrator)
on
23 Sep 2014, 15:53:49
There isn't. All accounts are required to have a unique valid email address associated to them.
Damn, did not recognize that I should use "gms_register_errorcode()" and not "gms_login_error_tostring()" xD
- You can delete these posts if you want to!
I can't get this to work for some reason?
-----------------------------------------------------------------------
gms_register(myname,password,password2,email,scr_register)
//In scr_register
switch(argument0)
{
case e_ok:
show_message("Account has been registered!");
break;
default:
show_message(gms_login_error_tostring(argument0));
break;
}
-----------------------------------------------------------------------
It keeps giving the "e_already_logged_in" error, as if I am already logged in, even though I have not yet logged in, only attempted to register. Despite this, I am still able to log in normally using an account or as a guest account without a password, which oddly does not give the "e_already_logged_in".
Am I doing something wrong here?
Any help much appreciated, and keep up the good work :)
You should always log out when the game ends
That's what i think , your account is still logged in so you need to gms_logout() first.