22.07.2012, 10:22
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:
amd
but account doesnt save why?
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;
}
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;
}