SA-MP Forums Archive
Register Problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Register Problems (/showthread.php?tid=343881)



Register Problems - Sanady - 19.05.2012

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);
        }