21.06.2013, 12:04
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
before it was
Both do the same thing still.
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;
}
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;
}