Problem with Y_INI Login/Register
#3

Register Login stock

pawn Код:
stock RLPlayer(playerid)
{
  new pName [ MAX_PLAYER_NAME ] ;
  GetPlayerName ( playerid , pName , MAX_PLAYER_NAME ) ;
  if(fexist(UserAccount(playerid)))
  {
    INI_ParseFile(UserAccount(playerid),"LoadUser_%s", .bExtra = true, .extra = playerid);
    ShowPlayerDialog(playerid, L_DIALOG, DIALOG_STYLE_PASSWORD,""cgreen"Login",""corange"Your account is already registered\n"cgreen"Please type your password to login","Login","");
  }
  else
  {
    ShowPlayerDialog(playerid, R_DIALOG, DIALOG_STYLE_PASSWORD,""cgreen"Register",""corange"Your account is "cred"not "corange"registered\n"cgreen"Please type your password to register","Register","");
  }
  return 1;
}
LoadUser_data

pawn Код:
public LoadUser_data(playerid, name[], value[])
{
  INI_String("Password", PlayerInfo[playerid][pPass], 129);
  INI_Int("Scores", PlayerInfo[playerid][pScores]);
  INI_Int("Money", PlayerInfo[playerid][pMoney]);
  INI_Int("AdminLevel", PlayerInfo[playerid][pAdmin]);
  INI_Int("Kills", PlayerInfo[playerid][pKills]);
  INI_Int("Deaths", PlayerInfo[playerid][pDeaths]);
  INI_Int("Helper", PlayerInfo[playerid][pHelper]);
  INI_Int("Banned", PlayerInfo[playerid][pBanned]);
  return 1;
}
Reply


Messages In This Thread
[Fixed] - by Jarnu - 27.10.2012, 04:06
Re: Problem with Y_INI Login/Register - by JaKe Elite - 27.10.2012, 04:08
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:10
Re: Problem with Y_INI Login/Register - by Emmet_ - 27.10.2012, 04:11
Re: Problem with Y_INI Login/Register - by Lordzy - 27.10.2012, 04:17
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:18
Re: Problem with Y_INI Login/Register - by Lordzy - 27.10.2012, 04:29
Re: Problem with Y_INI Login/Register - by Jarnu - 27.10.2012, 04:52
Re: Problem with Y_INI Login/Register - by [HK]Ryder[AN] - 27.10.2012, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)