Login problem
#2

you can do something like:
pawn Код:
else if(dialogid == 2) // Login
    {
        if(response)
        {
            new file[64], password[256], IP[16], password2[256];
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            WP_Hash(password2, sizeof(password2), inputtext);
            format(password, sizeof(password), "%s", dini_Get(file, "Password"));
            if(!strcmp(password2, password, true))//IF THE PLAYER DID RIGHT PASSWORD
            {
            //CODE IF PASS IS RIGHT
            }
            else
            {
            SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid password.");
            ShowDialog(playerid, 2);
            return 1;
            }
Reply


Messages In This Thread
Login problem - by Rabea - 10.11.2014, 09:17
Re: Login problem - by Eth - 10.11.2014, 10:18
Re: Login problem - by Rabea - 10.11.2014, 10:28
Re: Login problem - by Eth - 10.11.2014, 10:47
Re: Login problem - by Rabea - 10.11.2014, 11:27
Re: Login problem - by osman2571 - 10.11.2014, 11:39
Re: Login problem - by Laurey - 10.11.2014, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)