02.12.2012, 11:53
Whenever I add new saves to my Y_INI (I just added factions and fightstyle for example), the file doesn't load. It just creates the password and thats it.
How to fix?
How to fix?
enum PlayerInfo
{
Pass[129],
Adminlevel,
VIPlevel,
Money,
Scores,
Kills,
Deaths,
Skin,
FightStyle,
Faction,
}
public loadaccount_user(playerid, name[], value[])
{
INI_String("Password", pInfo[playerid][Pass],129);
INI_Int("AdminLevel",pInfo[playerid][Adminlevel]);
INI_Int("VIPLevel",pInfo[playerid][VIPlevel]);
INI_Int("Money",pInfo[playerid][Money]);
INI_Int("Scores",pInfo[playerid][Scores]);
INI_Int("Kills",pInfo[playerid][Kills]);
INI_Int("Deaths",pInfo[playerid][Deaths]);
INI_Int("Skin",pInfo[playerid][Skin]);
INI_Int("FightStyle",pInfo[playerid][FightStyle]);
INI_Int("Faction",pInfo[playerid][Faction]);
return 1;
}
INI_WriteString(file,"Password",hashpass);
INI_WriteInt(file,"AdminLevel",0);
INI_WriteInt(file,"VIPLevel",0);
INI_WriteInt(file,"Money",50);
INI_WriteInt(file,"Scores",0);
INI_WriteInt(file,"Kills",0);
INI_WriteInt(file,"Deaths",0);
INI_WriteInt(file,"Skin",299);
INI_WriteInt(file,"FightStyle",4);
INI_WriteInt(file,"Faction",0);