vitalik6243
Умник
Ребят у меня такая проблема когда на сервере играет 25+ человек аккаунты перестают сохраняться!
Вот сама система сохранения!
Вот сама система сохранения!
Код:
stock OnPlayerSave(playerid)
{
if(regaa[playerid] == 0)
{
new string3[128];
format(string3, sizeof(string3), "gameacc/%s.ini", Name(playerid));
new File = ini_openFile(string3);
if(!File)
{
ini_setInteger(File,"Level",PlayerInfo[playerid][pLevel]);
ini_setInteger(File,"House",PlayerInfo[playerid][pPhousekey]);
ini_setInteger(File,"Bussines",PlayerInfo[playerid][pPbiskey]);
ini_setInteger(File,"Ferma",PlayerInfo[playerid][pFerma]);
ini_setInteger(File,"Fermazarobotok",PlayerInfo[playerid][pFermazarobotok]);
ini_setInteger(File,"FermaJob",PlayerInfo[playerid][pFermajob]);
ini_setInteger(File,"AdminLevel",PlayerInfo[playerid][pAdmin]);
ini_setInteger(File,"MyRp",PlayerInfo[playerid][pMyRp]);
ini_setInteger(File,"Helper", PlayerInfo[playerid][pHelper]);
ini_setInteger(File,"DonMon",PlayerInfo[playerid][pDonMon]);
ini_setFloat(File,"Fuelcar",PlayerInfo[playerid][pFuelcar]);
ini_setInteger(File,"Text",PlayerInfo[playerid][pText]);
ini_setInteger(File,"HP",PlayerInfo[playerid][pHP]);
ini_setInteger(File,"Satiety",PlayerInfo[playerid][pSatiety]);
ini_setInteger(File,"CheckIp",PlayerInfo[playerid][pCheckip]);
ini_setInteger(File,"PhoneBook",PlayerInfo[playerid][pPhoneBook]);
ini_setInteger(File,"Directory",PlayerInfo[playerid][pDirectory]);
ini_setInteger(File,"Car",PlayerInfo[playerid][pCar]);
ini_setInteger(File,"DonateAccount",PlayerInfo[playerid][pDonateAccount]);
ini_setInteger(File,"DonateMoney",PlayerInfo[playerid][pDonateMoney]);
ini_setInteger(File,"DonateRank",PlayerInfo[playerid][pDonateRank]);
ini_setInteger(File,"Sex",PlayerInfo[playerid][pSex]);
ini_setInteger(File,"Arrested",PlayerInfo[playerid][pArrested]);
ini_setInteger(File,"Muted",PlayerInfo[playerid][pMuted]);
ini_setInteger(File,"Crimes",PlayerInfo[playerid][pCrimes]);
ini_setInteger(File,"Respect",PlayerInfo[playerid][pExp]);
ini_setInteger(File,"OnlFrak",PlayerInfo[playerid][pFExp]);
ini_setInteger(File,"Money",PlayerInfo[playerid][pCash]);
ini_setInteger(File,"Kills",PlayerInfo[playerid][pKills]);
ini_setInteger(File,"Deaths",PlayerInfo[playerid][pDeaths]);
ini_setInteger(File,"PayCheck",PlayerInfo[playerid][pPayCheck]);
ini_setInteger(File,"Jailed",PlayerInfo[playerid][pJailed]);
ini_setInteger(File,"JailTime",PlayerInfo[playerid][pJailTime]);
ini_setInteger(File,"Materials",PlayerInfo[playerid][pMaterials]);
ini_setInteger(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
ini_setInteger(File,"Drugs",PlayerInfo[playerid][pDrugs]);
ini_setInteger(File,"Leader",PlayerInfo[playerid][pLeader]);
ini_setInteger(File,"Member",PlayerInfo[playerid][pMember]);
ini_setInteger(File,"Rank",PlayerInfo[playerid][pRank]);
ini_setInteger(File,"Job",PlayerInfo[playerid][pJob]);
ini_setInteger(File,"CarLic",PlayerInfo[playerid][pCarLic]);
ini_setInteger(File,"BizLic",PlayerInfo[playerid][pBisLic]);
ini_setInteger(File,"FlyLic",PlayerInfo[playerid][pFlyLic]);
ini_setInteger(File,"BoatLic",PlayerInfo[playerid][pBoatLic]);
ini_setInteger(File,"FishLic",PlayerInfo[playerid][pFishLic]);
ini_setInteger(File,"GunLic",PlayerInfo[playerid][pGunLic]);
ini_setInteger(File,"Slot1", PlayerInfo[playerid][pSlot][0]);
ini_setInteger(File,"Slot2", PlayerInfo[playerid][pSlot][1]);
ini_setInteger(File,"Slot3", PlayerInfo[playerid][pSlot][2]);
ini_setInteger(File,"Slot4", PlayerInfo[playerid][pSlot][3]);
ini_setInteger(File,"Slot5", PlayerInfo[playerid][pSlot][4]);
ini_setInteger(File,"Slot6", PlayerInfo[playerid][pSlot][5]);
ini_setInteger(File,"Slot7", PlayerInfo[playerid][pSlot][6]);
ini_setInteger(File,"Slot8", PlayerInfo[playerid][pSlot][7]);
ini_setInteger(File,"Slot9", PlayerInfo[playerid][pSlot][8]);
ini_setInteger(File,"Slot10", PlayerInfo[playerid][pSlot][9]);
ini_setInteger(File,"Slot11", PlayerInfo[playerid][pSlot][10]);
ini_setInteger(File,"Slot12", PlayerInfo[playerid][pSlot][11]);
ini_setInteger(File,"Slot13", PlayerInfo[playerid][pSlot][12]);
ini_setInteger(File,"Slotammo1", PlayerInfo[playerid][pSlotammo][0]);
ini_setInteger(File,"Slotammo2", PlayerInfo[playerid][pSlotammo][1]);
ini_setInteger(File,"Slotammo3", PlayerInfo[playerid][pSlotammo][2]);
ini_setInteger(File,"Slotammo4", PlayerInfo[playerid][pSlotammo][3]);
ini_setInteger(File,"Slotammo5", PlayerInfo[playerid][pSlotammo][4]);
ini_setInteger(File,"Slotammo6", PlayerInfo[playerid][pSlotammo][5]);
ini_setInteger(File,"Slotammo7", PlayerInfo[playerid][pSlotammo][6]);
ini_setInteger(File,"Slotammo8", PlayerInfo[playerid][pSlotammo][7]);
ini_setInteger(File,"Slotammo9", PlayerInfo[playerid][pSlotammo][8]);
ini_setInteger(File,"Slotammo10", PlayerInfo[playerid][pSlotammo][9]);
ini_setInteger(File,"Slotammo11", PlayerInfo[playerid][pSlotammo][10]);
ini_setInteger(File,"Slotammo12", PlayerInfo[playerid][pSlotammo][11]);
ini_setInteger(File,"Slotammo13", PlayerInfo[playerid][pSlotammo][12]);
ini_setInteger(File,"SDPistol",PlayerInfo[playerid][pGunSkill][0]);
ini_setInteger(File,"DesertEagle",PlayerInfo[playerid][pGunSkill][1]);
ini_setInteger(File,"ShotGun",PlayerInfo[playerid][pGunSkill][2]);
ini_setInteger(File,"MP5",PlayerInfo[playerid][pGunSkill][3]);
ini_setInteger(File,"AK47",PlayerInfo[playerid][pGunSkill][4]);
ini_setInteger(File,"M4",PlayerInfo[playerid][pGunSkill][5]);
ini_setInteger(File,"TaxiExp",PlayerInfo[playerid][pTaxiExp]);
ini_setInteger(File,"TaxiLvl",PlayerInfo[playerid][pTaxiLvl]);
ini_setInteger(File,"CarRobbingExp",PlayerInfo[playerid][pCarRobbingExp]);
ini_setInteger(File,"DLevel",PlayerInfo[playerid][pDLevel]);
ini_setInteger(File,"DExp",PlayerInfo[playerid][pDExp]);
ini_setInteger(File,"DMgruz",PlayerInfo[playerid][pDMgruz]);
ini_setInteger(File,"Dgruz",PlayerInfo[playerid][pDgruz]);
ini_setInteger(File,"Kazpay",PlayerInfo[playerid][pKazpay]);
ini_setInteger(File,"Char",PlayerInfo[playerid][pChar]);
ini_setInteger(File,"Int",PlayerInfo[playerid][pInt]);
ini_setInteger(File,"Local",PlayerInfo[playerid][pLocal]);
ini_setInteger(File,"Model",PlayerInfo[playerid][pModel]);
ini_setInteger(File,"PhoneNr",PlayerInfo[playerid][pPnumber]);
ini_setInteger(File,"PayDay",PlayerInfo[playerid][pPayDay]);
ini_setInteger(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]);
ini_setInteger(File,"Tutorial",PlayerInfo[playerid][pTut]);
ini_setInteger(File,"Vigovor",PlayerInfo[playerid][pFvig]);
ini_setInteger(File,"Warnings",PlayerInfo[playerid][pWarns]);
ini_setInteger(File,"unWarns",PlayerInfo[playerid][punWarns]);
ini_setInteger(File,"unWarnstime",PlayerInfo[playerid][punWarnstime]);
ini_setInteger(File,"Fuel",PlayerInfo[playerid][pFuel]);
ini_setString(File,"Married",PlayerInfo[playerid][pMarried]);
ini_setInteger(File,"FriendMoney",PlayerInfo[playerid][pFriendMoney]);
ini_setInteger(File,"Radio",PlayerInfo[playerid][pRadio]);
ini_setInteger(File,"Ticket",PlayerInfo[playerid][pTicket]);
ini_setInteger(File,"TicketWinner",PlayerInfo[playerid][pTicketWin]);
ini_setInteger(File,"TicketNrOne",PlayerInfo[playerid][pTicketNr][0]);
ini_setInteger(File,"TicketNrTwo",PlayerInfo[playerid][pTicketNr][1]);
ini_setInteger(File,"TicketNrThree",PlayerInfo[playerid][pTicketNr][2]);
ini_setInteger(File,"Fishes",PlayerInfo[playerid][pFishes]);
ini_setInteger(File,"MuteTime",PlayerInfo[playerid][pMuteTime]);
ini_setInteger(File,"Mobile",PlayerInfo[playerid][pMobile]);
ini_setInteger(File,"Bank",PlayerInfo[playerid][pBank]);
ini_setInteger(File,"Ban",PlayerInfo[playerid][pLocked]);
ini_setInteger(File,"BanTime",PlayerInfo[playerid][pBanTime]);
ini_setInteger(File,"BanData",PlayerInfo[playerid][pBanData]);
ini_setInteger(File,"MafiaRoof",PlayerInfo[playerid][pMafiaRoof]);
ini_setInteger(File,"UseMafiaRoof",PlayerInfo[playerid][pUseMafiaRoof]);
ini_setInteger(File,"Debt",PlayerInfo[playerid][pDebt]);
ini_setInteger(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
ini_setInteger(File,"KongfuSkill",PlayerInfo[playerid][pKongfuSkill]);
ini_setInteger(File,"KickboxSkill",PlayerInfo[playerid][pKickboxSkill]);
ini_setInteger(File,"Dostup",PlayerInfo[playerid][pDostup]);
ini_setInteger(File,"Labiding",PlayerInfo[playerid][pLabiding]);
ini_setInteger(File,"Addiction",PlayerInfo[playerid][pAddiction]);
ini_setInteger(File,"NarcoLomka",PlayerInfo[playerid][pNarcoLomka]);
ini_setInteger(File,"Procents",PlayerInfo[playerid][pProcents]);
ini_setInteger(File,"Wheels",PlayerInfo[playerid][pWheels]);
ini_setInteger(File,"PaintJob",PlayerInfo[playerid][pPaintJob]);
ini_setInteger(File,"Spoiler",PlayerInfo[playerid][pSpoiler]);
ini_setInteger(File,"FrontBumper",PlayerInfo[playerid][pBumper1]);
ini_setInteger(File,"RearBumper",PlayerInfo[playerid][pBumper2]);
ini_setInteger(File,"Color",PlayerInfo[playerid][pColor]);
ini_setInteger(File,"Color2",PlayerInfo[playerid][pColor1]);
ini_setInteger(File,"Nitro",PlayerInfo[playerid][pNitro]);
ini_setInteger(File,"Hydravlic",PlayerInfo[playerid][pHydrawlic]);
ini_setInteger(File,"Jubka",PlayerInfo[playerid][pJubka]);
ini_setInteger(File,"Vozduh",PlayerInfo[playerid][pVozduh]);
ini_setInteger(File,"Vihlop",PlayerInfo[playerid][pVihlop]);
ini_setInteger(File,"PlaceJail",PlayerInfo[playerid][pPlaceJail]);
ini_setInteger(File,"Housecash",PlayerInfo[playerid][pHousecash]);
ini_setInteger(File,"WantedLevel",PlayerInfo[playerid][pWantedLevel]);
ini_setInteger(File,"SDp",PlayerInfo[playerid][pSSd]);
ini_setInteger(File,"SDeag",PlayerInfo[playerid][pSDeag]);
ini_setInteger(File,"SShot",PlayerInfo[playerid][pSShot]);
ini_setInteger(File,"SSMG",PlayerInfo[playerid][pSSMG]);
ini_setInteger(File,"SAK47",PlayerInfo[playerid][pSAK]);
ini_setInteger(File,"SM4",PlayerInfo[playerid][pSM4]);
ini_setInteger(File,"SReaf",PlayerInfo[playerid][pSReaf]);
ini_setInteger(File,"SNark",PlayerInfo[playerid][pSNark]);
ini_setInteger(File,"HitSkil",PlayerInfo[playerid][pSkilHit]);
ini_setInteger(File,"HeadValue",PlayerInfo[playerid][pHeadValue]);
new playersip[256];
GetPlayerIp(playerid,playersip,sizeof(playersip));
new year, month, day;
getdate(year, month, day);
new strstre[100];
format(strstre,sizeof(strstre), "%d/%d/%d",day,month,year);
ini_setString(File,"Online",strstre);
ini_closeFile(File);
}
}
return true;
}
