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 (11)

Last message on 27 Feb 2015

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 :)