System register problem (GF)
#1

Hi all.
I've a big fuckin' problem.
A player makes account on my server, then he disconnect. When he try to login on my server, he receive this message: "This account already exist!"

Code:
Код:
if(dialogid == 12345)
            {
                if(strlen(inputtext))
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "Users/%s.ini", sendername);
                    new File: hFile = fopen(string, io_read);
                    if (hFile)
                    {
                        SendClientMessage(playerid, COLOR_YELLOW, "* This name already exist!");
                        fclose(hFile);
                        return 1;
                    }
                    new tmppass[64];
                    strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
                    OnPlayerRegister(playerid,tmppass);
                    }
                    else
                    {
                        new regstring[128];
                        new regname[64];
                        GetPlayerName(playerid,regname,sizeof(regname));
                        format(regstring,sizeof(regstring),"{FFFFFF}Welcome, {AA3333}%s \n \n{32CD32}Type a password:",regname);
                        ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
                    }
                }
            }
Pls help.

@ Sorry for my bad english, i'm from Romania.
Reply
#2

....
Reply
#3

Thats because he makes the account?
Do a variable to check if he is in the tutorial, and when he leaves and its set to 1, remove the account.
Reply
#4

No, he makes the account, then he disconnect from server. When he try to login on server receive "This nick-name already used!".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)