Y_INI don't load the password from .ini.
#1

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!
Reply
#2

password - only digits?
Reply
#3

The password is for example test123.
Reply
#4

Use INI_String

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)