Question
#4

Код:
switch(dialogid)
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FFC800}Toxic{00FF00}Freeroam","{FF4600}Написахте невалидна парола!.\n{00C3FF}Напишете паролата с която искате да се регистрирате.","Регистрация","Отказ");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);
                SpawnPlayer(playerid);
                new pName[MAX_PLAYER_NAME];
				new string[128];
				GetPlayerName(playerid, pName, sizeof(pName));
				format(string, sizeof(string), "You register account with the name: %s, password: %s", pName);
			}
        }
I dont know the thing to show your password also i use udb_hash, i don't know how is gonna work, when if you type password when you register and it is: 123 and on the config of the player the pass says: 125109138944,

I learned that is for the password cannot be hacked but how to remove it, or do i need to use it, but how to say what password did the player register?? and for the date i don't know how to do it.
Reply


Messages In This Thread
Question - by Lixyde - 22.03.2018, 18:50
Re: Question - by Dutheil - 22.03.2018, 18:52
Re: Question - by Logic_ - 22.03.2018, 18:54
Re: Question - by Lixyde - 22.03.2018, 19:03
Re: Question - by Logic_ - 22.03.2018, 19:08
Re: Question - by BulletRaja - 22.03.2018, 19:08
Re: Question - by PowerMwK - 22.03.2018, 19:09
Re: Question - by Maxandmov - 22.03.2018, 19:09
Re: Question - by Lixyde - 22.03.2018, 19:25
Re: Question - by Maxandmov - 22.03.2018, 19:30

Forum Jump:


Users browsing this thread: 2 Guest(s)