30.11.2013, 15:10
pawn Код:
//Global variable
new PlayerPassword[MAX_PLAYERS][129] //In this we are going to store the hashed password
//OnPlayerRegister
WP_Hash(PlayerPassWord[playerid][Password], 129, password); //Now we hash 'password' which is the password sent to OnPlayerRegister and store it into PlayerPassWord
//So to enter it in the database:
mysql_real_escape_string(PlayerPassWord[playerid][Password], Escape[1]);
//I'm not sure if it works 100 percent because I use SQLite, which is similar but slightly different.