enum and string, limit?
#8

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
Then make sure "pData[playerid][pPassword]" is never empty! If it is, that might indicate the user isn't registered, if that's the case, make him register an account, save the password, load it when needed, and voilа - "pData[playerid][pPassword]" is not empty!
Also, you must put the "isnull" check before your "strcmp" check, preferably there where the user first inputs his password (for me that's under OnDialogResponse).
That's what I'm trying to do, and It doesn't work as described above.
I'm perfectly smart enough to create a user system, and !isnull works fine like I've written it, since It does check
if the password match AND isn't empty, if one of the conditions fail it will fail.

But if the string is empty it will just let the player spawn WHEN i use 'pData[playerid][pPassword]', but it doesn't do that when i create a string right in OnDialogResponse and retrieve the password right there instead.

Now, It's not very important for me to store the password with the playerdata using enum, I just thought it might be a little easier that way, but It doesn't really matter... I just wonder why it does this :P

Also, the reason I'm asking why it doesn't work with the Whirlpool hash is because it works fine with the rest of my arrays;

Example:
pawn Код:
enum playerdata
{
    pFile[42],
    pBanreason[64],
    pBandate[48],
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: 2 Guest(s)