Usage: gms_register ( username, password, password_again, mail, callback )


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

Dublann on 30 Aug 2020, 12:14:28
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.

dirtycow on 3 Dec 2018, 11:43:08
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?
SimplesQuadrupled on 27 Feb 2015, 00:56:28
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 ;)
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 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. :)
captain_davy on 20 Sep 2014, 18:20:26
...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.
captain_davy on 20 Sep 2014, 18:01:48
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!
captain_davy on 20 Sep 2014, 17:54:31
I can't get this to work for some reason?


//In scr_register

case e_ok:
show_message("Account has been registered!");

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 :)
AouabAdYT on 17 Mar 2018, 20:12:27
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.