Users password bug?
#4

Quote:
Originally Posted by Blast3r
Посмотреть сообщение
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.
Uhm, I have definied PlayerName3 now. I will try...

The password saves in OnPlayerRegister
pawn Код:
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
Saves in OnPlayerSave
pawn Код:
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
and in OnPlayerLogin.

Do you think it will work with PlayerName3? Why I didn't get errors?
Reply


Messages In This Thread
Users password bug? - by alanhutch - 12.08.2014, 19:41
Re: Users password bug? - by SKAzini - 12.08.2014, 20:08
Re: Users password bug? - by Blast3r - 12.08.2014, 20:15
Re: Users password bug? - by alanhutch - 12.08.2014, 20:28
Re: Users password bug? - by Virtual1ty - 12.08.2014, 20:31
Re: Users password bug? - by SickAttack - 12.08.2014, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)