Register Problems
#1

Hello everybody.I am new here.So...I got problem with my Register system.When player connect dialog will show.But when he type password nothing happend I dont know why.On DialogRespons everything looks fine.
I will post code from DialogRespons
pawn Код:
case (Dialog:Register):
        {
            if(!response) return SPD(playerid,Dialog:Register,INPUT,embed_white"Registration",embed_white"Please enter the "embed_lblue"password "embed_white"!","Register","Cancel");

            new password[24];
            if(sscanf(inputtext,"s[24]",password)) return SPD(playerid,Dialog:Register,INPUT,embed_white"Registration",embed_white"Please enter the "embed_lblue"password "embed_white"!","Register","Cancel");

            new file[56];
            format(file,sizeof(file),"sAdmin/Accounts/%s.acc", pName[playerid]);
            dini_Create(file);
            dini_Set(file, "Password", password);
            dini_IntSet(file, "Level", pInfo[playerid][pLevel]);

            SavePlayerStats(playerid);
            pInfo[playerid][pRegistered] = 1;
            LoginPlayer(playerid, "", 1);
            SendClientMessage(playerid, COLOR_WHITE, ""embed_blue"[INFO]{FFFFFF}You have "COL_GREEN"successfully{FFFFFF} registred!" );
            SpawnPlayer(playerid);
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)