enum and string, limit?
#5

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:
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
    {
This doesn't....

pawn Код:
new pass[129],str[128];
    encrypt(pass,sizeof(pass),password);
        // retrieve stored password
    if(!strcmp(pass,pData[playerid][pPassword]) && !isnull(password))
    {
Because string "pData[playerid][pPassword]" is empty, and string "userpass" isn't, when I retrieve the password exactly the same way.
Reply


Messages In This Thread
enum and string, limit? - by liquor - 02.07.2015, 00:57
Re: enum and string, limit? - by iTakelot - 02.07.2015, 01:15
Re: enum and string, limit? - by Abagail - 02.07.2015, 01:18
Re: enum and string, limit? - by Virtual1ty - 02.07.2015, 13:27
Re: enum and string, limit? - by liquor - 02.07.2015, 15:08
Re: enum and string, limit? - by Virtual1ty - 02.07.2015, 15:15
Re: enum and string, limit? - by Misiur - 02.07.2015, 15:30
Re: enum and string, limit? - by liquor - 02.07.2015, 16:04
Re: enum and string, limit? - by Virtual1ty - 02.07.2015, 16:31
Re: enum and string, limit? - by liquor - 03.07.2015, 01:48

Forum Jump:


Users browsing this thread: 1 Guest(s)