12.08.2014, 20:28
Quote:
This and make sure you only save the password ONCE and that is when the account is created, rest of the time players login they only load. You can also save them at changepw type of cmds, but never save them everytime save function is called.
|
The password saves in OnPlayerRegister
pawn Код:
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
pawn Код:
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
Do you think it will work with PlayerName3? Why I didn't get errors?