Help login/register
#6

Quote:
Originally Posted by adri1
for(new i, j = strlen(the_password_here); i < j; i++)
{
if(the_password_here[i] == 'the_existing_number') the_password_here[i] = 'replace_with_this';
}
you can use this AFTER udb_hash is used, so if you wanna replace all numbers i guess something like this will work if placed AFTER udb_hash was used in a dialogue response, replace inputtext if you're using another login system:
PHP код:
for(new istrlen(inputtext); <= ji++)
{
    if(
inputtext[i] == '1'inputtext[i] = 'a';
    if(
inputtext[i] == '2'inputtext[i] = 'b';
    if(
inputtext[i] == '3'inputtext[i] = 'c';
    if(
inputtext[i] == '4'inputtext[i] = 'd';
    if(
inputtext[i] == '5'inputtext[i] = 'e';
    if(
inputtext[i] == '6'inputtext[i] = 'f';
    if(
inputtext[i] == '7'inputtext[i] = 'g';
    if(
inputtext[i] == '8'inputtext[i] = 'h';
    if(
inputtext[i] == '9'inputtext[i] = 'i';
    if(
inputtext[i] == '0'inputtext[i] = 'j';
    } 
this will result in all passwords having the exact same letters BUT in different order, DON'T forget to do the exact same thing when a player logs in, you have to load the password the exact same way it was saved, goodluck.
Reply


Messages In This Thread
Help login/register - by Davidmkd123 - 30.12.2017, 14:23
Re: Help login/register - by GTLS - 30.12.2017, 16:21
Re: Help login/register - by jasperschellekens - 30.12.2017, 17:07
Re: Help login/register - by Davidmkd123 - 30.12.2017, 19:05
Re: Help login/register - by GTLS - 31.12.2017, 09:29
Re: Help login/register - by RogueDrifter - 31.12.2017, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)