Weird Problem.
#1

I don't know why and how but my register/login system fucked up a bit. When i connect, it doesn't show me dialog to login or register... I know it looks noob and etc. But i really don't know what fucks it up!
pawn Код:
format(accname, sizeof(accname), "%s", GetName(playerid));
    if(!fexist(accname))
    {
        format(str, sizeof(str), "{FFFFFF}Witaj {FBFF00}%s \n\n{FFFFFF}Zarejestruj się!", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Rejestracja", str, "Rejestruj", "Wyjdź");
    }
    if(fexist(accname))
    {
        format(str, sizeof(str), "{FFFFFF}Witaj\nKonto: {FBFF00} %s\n{FFFFFF}Proszę zaloguj się!", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Logowanie", str, "Zaloguj", "Wyjdź");
    }
    return 1;
}
Reply
#2

pawn Код:
format(accname, sizeof(accname), "%s....", GetName(playerid)); // You probebly save your files in a format?
    if(fexist(accname))
    {
        format(str, sizeof(str), "{FFFFFF}Witaj\nKonto: {FBFF00} %s\n{FFFFFF}Proszę zaloguj się!", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Logowanie", str, "Zaloguj", "Wyjdź");
    }
    else
    {
        format(str, sizeof(str), "{FFFFFF}Witaj {FBFF00}%s \n\n{FFFFFF}Zarejestruj się!", GetName(playerid));
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Rejestracja", str, "Rejestruj", "Wyjdź");
    }
    return 1;
}
Reply
#3

I use djSon, i tryed to add "%s.json" and nothing, so i think it's not about format.
Reply
#4

Right click on one of your user save files and see what format it is... lise .save or .djson
And you must format same format each time...and check your format for saving user file
Reply
#5

Yeah, my files have no format and this register/login system was working before! Also i use djson for dynamic systems and it checks if there is a file "Factions" succesfully! I need to know what fucks it up, maybe i should rewrite whole system?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)