Password hashing
#5

Quote:
Originally Posted by Robin96
Посмотреть сообщение
It shows a number because the reference you use (%d) represents an integer (number) rather than a string(text). You should use the %s reference.

Fixed code:
PHP код:
new pass PlayerInfo[playerid][pPassword];
format(string,sizeof(string),"Your account has been successfully created.Password(%s)",pass); \\When they register it shows random numbers and sometimes only "0".
SendClientMessage(playerid,COLOR_YELLOW,string); 
And what do you mean by 'real password'?
Now the brackets where the password is meant to be are blank.Not even numbers.
Reply


Messages In This Thread
Password hashing - by Mike861 - 11.06.2018, 19:25
Re: Password hashing - by xMoBi - 11.06.2018, 22:07
Re: Password hashing - by Robin96 - 11.06.2018, 22:53
Re: Password hashing - by Sew_Sumi - 11.06.2018, 23:11
Re: Password hashing - by Mike861 - 12.06.2018, 07:57
Re: Password hashing - by Robin96 - 12.06.2018, 10:05
Re: Password hashing - by Dayrion - 12.06.2018, 10:35
Re: Password hashing - by Logic_ - 12.06.2018, 11:14
Re: Password hashing - by Logic_ - 12.06.2018, 11:50
Re: Password hashing - by Ada32 - 12.06.2018, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)