SA-MP Forums Archive
Y_INI don't load the password from .ini. - 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)
+--- Thread: Y_INI don't load the password from .ini. (/showthread.php?tid=529834)



Help with Y_INI. Give +rep. - xHanks - 04.08.2014

Hi guy's, it's my first time using Y_INI and i got some problems, the gamemode don't pick the password of the .ini file, i don't know why, i give you the code.

pawn Код:
forward LoadUser(playerid,name[],value[]);
public LoadUser(playerid,name[],value[])
{
if(logueado[playerid] == 0){
INI_Int("Contraseсa",pInfo[playerid][Pass]); //Here is the variable and where is the password saved.
}
    return 1;
}

//-- OnPlayerConnect

public OnPlayerConnect(playerid)
{
logueado[playerid] = 0;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); //Here is for load the password i think.
ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", "Enter your password below:", "Login", "Cancel");
}
HELP!


Re: Y_INI don't load the password from .ini. - OKStyle - 04.08.2014

password - only digits?


Re: Y_INI don't load the password from .ini. - xHanks - 04.08.2014

The password is for example test123.


Re: Y_INI don't load the password from .ini. - OKStyle - 04.08.2014

Use INI_String

https://sampforum.blast.hk/showthread.php?tid=175565


Re: Y_INI don't load the password from .ini. - Stinged - 04.08.2014

Hash your password. If I was going to look for a server to play on, I'm not going to join yours because you don't hash them. A lot of players use the same password for ******** and whatever.