Huge bug
#1

Well, zGaming (by iRage) has a HUGE bug in the script......

Mainly if you log on as someone else, if you place a random/wierd password it still logs you in... And this new version of it, still makes it happen. Anyway to fix it??

Currently
pawn Код:
new file[64], password[256], IP[16], password2[256];
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            WP_Hash(password2, sizeof(password2), inputtext);
            format(password, sizeof(password), "%s", dini_Get(file, "Password"));
            if(strcmp(dini_Get(file, "Password"), password2))
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid password.");
                ShowDialog(playerid, 2);
                return 1;
            }
before it was

pawn Код:
new file[64], password[256], IP[16], password2[256];
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            WP_Hash(password2, sizeof(password2), inputtext);
            format(password, sizeof(password), "%s", dini_Get(file, "Password"));
            if(!strcmp(dini_Get(file, "Password"), password2))
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Invalid password.");
                ShowDialog(playerid, 2);
                return 1;
            }
Both do the same thing still.
Reply


Messages In This Thread
Huge bug - by Swyft™ - 21.06.2013, 12:04
Re: Huge bug - by Copfan5 - 21.06.2013, 12:06
Re: Huge bug - by Swyft™ - 21.06.2013, 12:18
Re: Huge bug - by Swyft™ - 21.06.2013, 12:22
Re: Huge bug - by MP2 - 21.06.2013, 12:25
Re: Huge bug - by Swyft™ - 21.06.2013, 12:34
Re: Huge bug - by KingHual - 21.06.2013, 12:35
Re: Huge bug - by Swyft™ - 21.06.2013, 12:38
Re: Huge bug - by Swyft™ - 22.06.2013, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)