players info doesn not save -
Mr.1337 - 22.07.2012
whenever i make an account and log out, i go to scriptfiles and click on the name i registerd i open it and i dont see anything like Key=? etc
i have this:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
PlayerLeaveSkin[playerid] = GetPlayerSkin(playerid);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",PlayerInfo[playerid][pPass]);
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVIP]);
INI_WriteInt(File,"Helper",PlayerInfo[playerid][pHelper]);
INI_WriteInt(File,"DevTeam",PlayerInfo[playerid][pDevTeam]);
INI_WriteInt(File,"Muted",PlayerInfo[playerid][pMuted]);
INI_WriteInt(File,"NewMuted",PlayerInfo[playerid][pNewMuted]);
INI_WriteInt(File,"Masked",PlayerInfo[playerid][pMasked]);
INI_WriteInt(File,"AdminDuty",PlayerInfo[playerid][pAdminDuty]);
INI_WriteInt(File,"Afk",PlayerInfo[playerid][pAfk]);
INI_WriteInt(File,"ReportMuted",PlayerInfo[playerid][pReportMuted]);
INI_WriteInt(File,"ReportFormat",PlayerInfo[playerid][pReportFormat]);
INI_WriteInt(File,"AcceptedReports",PlayerInfo[playerid][pAR]);
INI_WriteInt(File,"DeniedReports",PlayerInfo[playerid][pDR]);
INI_WriteInt(File,"Materials",PlayerInfo[playerid][pMaterials]);
INI_WriteInt(File,"Cocaine",PlayerInfo[playerid][pCocaine]);
INI_WriteInt(File,"Pot",PlayerInfo[playerid][pPot]);
INI_WriteInt(File,"Job",PlayerInfo[playerid][pJob]);
INI_WriteInt(File,"FacMember",PlayerInfo[playerid][pMember]);
INI_WriteInt(File,"FacLeader",PlayerInfo[playerid][pLeader]);
INI_WriteInt(File,"FamMember",PlayerInfo[playerid][pFMember]);
INI_WriteInt(File,"FacMod",PlayerInfo[playerid][pFactionMod]);
INI_WriteInt(File,"GangMod",PlayerInfo[playerid][pGangMod]);
INI_WriteInt(File,"BanAppealer",PlayerInfo[playerid][pBanAppealer]);
INI_WriteInt(File,"CarMod",PlayerInfo[playerid][pCarMod]);
INI_WriteInt(File,"InPBArena",PlayerInfo[playerid][pInPB]);
INI_WriteInt(File,"Skin",PlayerLeaveSkin[playerid]);
INI_Close(File);
return 1;
}
amd
pawn Код:
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("VIP",PlayerInfo[playerid][pVIP]);
INI_Int("Helper",PlayerInfo[playerid][pHelper]);
INI_Int("DevTeam",PlayerInfo[playerid][pDevTeam]);
INI_Int("Muted",PlayerInfo[playerid][pMuted]);
INI_Int("NewMuted",PlayerInfo[playerid][pNewMuted]);
INI_Int("Masked",PlayerInfo[playerid][pMasked]);
INI_Int("AdminDuty",PlayerInfo[playerid][pAdminDuty]);
INI_Int("Afk",PlayerInfo[playerid][pAfk]);
INI_Int("ReportMuted",PlayerInfo[playerid][pReportMuted]);
INI_Int("ReportFormat",PlayerInfo[playerid][pReportFormat]);
INI_Int("AcceptedReports",PlayerInfo[playerid][pAR]);
INI_Int("DeniedReports",PlayerInfo[playerid][pDR]);
INI_Int("Gender",PlayerInfo[playerid][pGender]);
INI_Int("Materials",PlayerInfo[playerid][pMaterials]);
INI_Int("Cocaine",PlayerInfo[playerid][pCocaine]);
INI_Int("Pot",PlayerInfo[playerid][pPot]);
INI_Int("Job",PlayerInfo[playerid][pJob]);
INI_Int("FacMember",PlayerInfo[playerid][pMember]);
INI_Int("FacLeader",PlayerInfo[playerid][pLeader]);
INI_Int("FamMember",PlayerInfo[playerid][pFMember]);
INI_Int("FacMod",PlayerInfo[playerid][pFactionMod]);
INI_Int("GangMod",PlayerInfo[playerid][pGangMod]);
INI_Int("CarMod",PlayerInfo[playerid][pCarMod]);
INI_Int("BanAppealer",PlayerInfo[playerid][pBanAppealer]);
INI_Int("InPBArena",PlayerInfo[playerid][pInPB]);
return 1;
}
but account doesnt save why
?
Re: players info doesn not save -
Kindred - 22.07.2012
Probably because you aren't saving everything to there needed areas.
For example, you are using INI_WriteInt for the password, of which would probably contain letters, meaning you need that to be INI_WriteString.
See what I mean?
Re: players info doesn not save -
Mr.1337 - 22.07.2012
So you want me to replace WriteInt with WriteString?
Re: players info doesn not save -
Kindred - 22.07.2012
Lordy, you really need to learn the difference between string and integer.
A string contains letters, and has a predefined string length (usually) (by this, I mean you set how long the string can take).
An integer is a number, unlike floats, which contain decimals.
Since password is a string (If I were to write sh123 for the password, it couldn't be an Int, because it contains letters, unless you have a password encrypter that encrypts it into numbers.
So replace the ones that are NEEDED.
Re: players info doesn not save -
Mr.1337 - 22.07.2012
I still don't get it.. can you fix it for me :3
Re: players info doesn not save -
Mr.1337 - 22.07.2012
jelllllllllp
Re: players info doesn not save -
Kindred - 22.07.2012
Don't bump. I'm not fixing it because you have no common sense, or you do not speak english.
Re: players info doesn not save -
JaKe Elite - 22.07.2012
A True scripter help him self to make his skill better.
But you, for you, A True scripter wait for other scripter to fix his script to make his skill easy.
Re: players info doesn not save -
[MM]RoXoR[FS] - 22.07.2012
It may be that he is using num_hash for password?