Registering issues

Posted by AouabAdYT
Hi size43,

Since gms’ forum was inactive for a moment i jave a brand new issue for you :)

Lots of players are telling me that they can’t register , the game either keeps telling them «Username already taken» or « E-mail already taken» , i tried some stupid long emails and username but still doesnt work

Here’s the code for registering:
//Inputs are working perfectly btw

user=new_username.txt
pass1=new_password1.txt
pass2=new_password2.txt
mail=new_email.txt
gms_register(user,pass1,pass2,mail,nfl_register)

Nfl_register script :
switch(argument0){
case re_ok:
{ 
show_message(something)
room_goto(login)
break;
}
default:
{
show_message(gms_register_error_tostring())
break;
}


Edit: if i try registering in the website with the same username and mail , it works.

Replies (3)

Last message on 16 Apr 2018

Size43 (Administrator) on 16 Apr 2018, 14:42:49
Can you add a show_message() in front of the gms_register call to check whether the variables contain the correct values?

Also, make sure you're not accidentally calling gms_register twice.
AouabAdYT (Topicstarter) on 16 Apr 2018, 18:25:45
Are you talking about the username, password1 variables... ?

And yeah that could be the problem , i'll check.
AouabAdYT (Topicstarter) on 16 Apr 2018, 21:21:21
That's true, that's why it doesn't work.
Register button was always reacting twice or thrice when clicking on it , so yeah!

Thanks!