SA-MP Forums Archive
Weird Problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weird Problem. (/showthread.php?tid=220482)



Weird Problem. - sekol - 03.02.2011

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;
}



Re: Weird Problem. - Lorrden - 03.02.2011

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;
}



Re: Weird Problem. - sekol - 03.02.2011

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


Re: Weird Problem. - DRIFT_HUNTER - 03.02.2011

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


Re: Weird Problem. - sekol - 03.02.2011

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?