02.05.2011, 11:52
Hi, i want to code my server user passwords by using Whirlpool, but i dont know how. I have downloaded Whirlpool succesfuly loaded it and put in the native.
I have tried this, but in the .ini file of a user it shows Password=0
I have tried this, but in the .ini file of a user it shows Password=0
Code:
if(dialogid == 0) { if(response) { new name[MAX_PLAYER_NAME],file[128]; GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),"saves/user/%s.ini",name); dini_Create(file); new buffer[129]; dini_IntSet(file,"Password",WP_Hash(buffer, sizeof(buffer), inputtext)); format(file,sizeof(file),"{FF0000}MPG:{FFFF00} Jus uzregistruotas ir prijungtas, aciu kad pasirinkote {00FF00}MPGames {FF0000}(Password: %s)",inputtext); SendClientMessage(playerid,GELTONA,file); playerDB[playerid][authstate]=1; return 1; } return 1; } return 1; }