[SOLVED] Passwords - Incorrect Saving; One letter replaced
#1

pawn Код:
new string[32];
format(string, sizeof(string), PASSWORD_FOLDER, PlayerName(playerid));
new File: hFile = fopen(string, io_write);
if (hFile)
{
   strmid(AccountInfo[playerid][Password], params, 0, strlen(params), 255);
   new str[128];
   format(str, 128, "Password=%s\n", AccountInfo[playerid][Password]);
   fwrite(hFile, str);
   fclose(hFile);

// The rest of the code - un important
It actually replaces one letter with something else, like >, <, Ђ, ^, ˇ etc and doesn't accept the password on login. What should I do? Hash them?
Reply


Messages In This Thread
[SOLVED] Passwords - Incorrect Saving; One letter replaced - by SpiderPork - 18.08.2009, 09:03
Re: Passwords - Incorrect Saving; One letter replaced - by SpiderPork - 19.08.2009, 09:49
Re: Passwords - Incorrect Saving; One letter replaced - by ronyx69 - 19.08.2009, 10:48
Re: Passwords - Incorrect Saving; One letter replaced - by SpiderPork - 19.08.2009, 10:51
Re: Passwords - Incorrect Saving; One letter replaced - by ronyx69 - 19.08.2009, 10:59
Re: Passwords - Incorrect Saving; One letter replaced - by SpiderPork - 19.08.2009, 11:11

Forum Jump:


Users browsing this thread: 2 Guest(s)