04.08.2014, 09:18
(
Последний раз редактировалось xHanks; 04.08.2014 в 09:53.
)
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.
HELP!
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");
}