02.07.2015, 15:08
The issue is that it remains empty If i use it exactly the same way as every other string I store. :P
I know why It's sized 129, that's why it is.
This works:
This doesn't....
Because string "pData[playerid][pPassword]" is empty, and string "userpass" isn't, when I retrieve the password exactly the same way.
I know why It's sized 129, that's why it is.
This works:
pawn Код:
new pass[129],str[128],userpass[129];
encrypt(pass,sizeof(pass),password);
// retrieve stored password
if(!strcmp(pass,userpass) && !isnull(password)) // I tried to change to strlen as part of debug
{
pawn Код:
new pass[129],str[128];
encrypt(pass,sizeof(pass),password);
// retrieve stored password
if(!strcmp(pass,pData[playerid][pPassword]) && !isnull(password))
{