28.06.2015, 11:18
When someone is registering I want to make when every field is filled up that msg box dialog pop up his account data example Name:, Password:, Gender:, etc but I am stuck on Password I printed all but I cannot print password is it possible to save a password into the string before it gets hashed and print it out in his data msg box? And an example. This is my register on dialog response
And this is where I print my data
Ignore the getPlayerPass(playerid) I tried it with some stock functions but I didnt succeed.
Код:
if(dialogid == DIALOG_LOZINKA) { if(response) { if(!strlen(inputtext)) { ShowPlayerDialog(playerid, DIALOG_LOZINKA, DIALOG_STYLE_INPUT, ""COL_BIJELA"Balkan Godfather-"COL_ZLATNA"Lozinka",""COL_BIJELA"Unijeli ste pogresan format "COL_CRVENA"sifre!\n\n"COL_BIJELA"Pokusaj "COL_ZLATNA"Ponovo!\n","Dalje","Odustani"); return 1; } else { new hashpass[129]; WP_Hash(hashpass,sizeof(hashpass),inputtext); new INI:file = INI_Open(Path(playerid)); INI_SetTag(file,"[Data]"); INI_WriteString(file,"Password",hashpass); INI_Close(file); } } return 1; }
Код:
else if(clickedid == RegRegistriraj19) { new pinfo[255]; format(pinfo,sizeof(pinfo),""COL_BIJELA"-----------"COL_ZLATNA"PODATCI"COL_BIJELA"-----------\n"COL_ZLATNA"Ime"COL_BIJELA": %s\n"COL_ZLATNA"Lozinka"COL_BIJELA": %s\n"COL_ZLATNA"Spol"COL_BIJELA": %s\n"COL_ZLATNA"Porijeklo"COL_BIJELA": %s\n"COL_ZLATNA"Godine"COL_BIJELA": %d\n"COL_ZLATNA"Email"COL_BIJELA": %s", PlayerName(playerid),getPlayerPass(playerid),getsex(playerid),getporijeklo(playerid),PlayerInfo[playerid][pGodine],PlayerInfo[playerid][pEmail]); ShowPlayerDialog(playerid, DIALOG_REGISTRIRAJ, DIALOG_STYLE_MSGBOX, ""COL_BIJELA"Balkan Godfather-"COL_ZLATNA"Registriraj", pinfo, "Da", "Ne"); }