БяКа_
Новичок
Ребят всем привет!
Проблема в том что при покупке донат скинов они не сохраняются О_о
Но я новичек в павно!
Даже после написания команды /saveall в которой есть функция сохранения акаунта
Не сохраняяет а нужно что бы сохраняло при дисконете
Скажите что выложить что бы ви могли мне помоч?
Вот кстате функция ячеек для донат скинов:
Некоторые паблики:
Проблема в том что при покупке донат скинов они не сохраняются О_о
Но я новичек в павно!
Даже после написания команды /saveall в которой есть функция сохранения акаунта
Не сохраняяет а нужно что бы сохраняло при дисконете
Скажите что выложить что бы ви могли мне помоч?
Вот кстате функция ячеек для донат скинов:
PHP:
pCharSlot2,
pCharSlot3,
pCharSlot4,
pCharSlot5,
PHP:
public OnPlayerUpdate_GF(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Akkounts/%s.ini", playername3);
new File = iniOpen(string3);
if(!File)
{
// iniSet(File,"Key",PlayerInfo[playerid][pKey]);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
iniSetInt(File,"Level",PlayerInfo[playerid][pLevel]);
iniSetInt(File,"Dm",PlayerInfo[playerid][pDm]);
iniSetInt(File,"AdminLevel",PlayerInfo[playerid][pAdmin]);
iniSetInt(File,"HelperLevel",PlayerInfo[playerid][pHelper]);
iniSetInt(File,"DonateRank",PlayerInfo[playerid][pDonateRank]);
iniSetInt(File,"FWarns",PlayerInfo[playerid][pFWarns]);
iniSetInt(File,"UpgradePoints",PlayerInfo[playerid][gPupgrade]);
iniSetInt(File,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
iniSetInt(File,"Registered",PlayerInfo[playerid][pReg]);
iniSetInt(File,"Sex",PlayerInfo[playerid][pSex]);
iniSetInt(File,"Age",PlayerInfo[playerid][pAge]);
iniSetInt(File,"Origin",PlayerInfo[playerid][pOrigin]);
iniSetInt(File,"CK",PlayerInfo[playerid][pCK]);
iniSetInt(File,"Muted",PlayerInfo[playerid][pMuted]);
iniSetInt(File,"Respect",PlayerInfo[playerid][pExp]);
iniSetInt(File,"Money",PlayerInfo[playerid][pCash]);
iniSetInt(File,"Bank",PlayerInfo[playerid][pAccount]);
iniSetInt(File,"Crimes",PlayerInfo[playerid][pCrimes]);
iniSetInt(File,"Kills",PlayerInfo[playerid][pKills]);
iniSetInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
iniSetInt(File,"Arrested",PlayerInfo[playerid][pArrested]);
iniSetInt(File,"WantedDeaths",PlayerInfo[playerid][pWantedDeaths]);
iniSetInt(File,"Phonebook",PlayerInfo[playerid][pPhoneBook]);
iniSetInt(File,"Kpk",PlayerInfo[playerid][pKpk]);
iniSetInt(File,"LottoNr",PlayerInfo[playerid][pLottoNr]);
iniSetInt(File,"Fishes",PlayerInfo[playerid][pFishes]);
iniSetInt(File,"BiggestFish",PlayerInfo[playerid][pBiggestFish]);
iniSetInt(File,"Job",PlayerInfo[playerid][pJob]);
iniSetInt(File,"Paycheck",PlayerInfo[playerid][pPayCheck]);
iniSetInt(File,"HeadValue",PlayerInfo[playerid][pHeadValue]);
iniSetInt(File,"Jailed",PlayerInfo[playerid][pJailed]);
iniSetInt(File,"JailTime",PlayerInfo[playerid][pJailTime]);
iniSetInt(File,"Materials",PlayerInfo[playerid][pMats]);
iniSetInt(File,"Drugs",PlayerInfo[playerid][pDrugs]);
iniSetInt(File,"Leader",PlayerInfo[playerid][pLeader]);
iniSetInt(File,"Member",PlayerInfo[playerid][pMember]);
iniSetInt(File,"FMember",PlayerInfo[playerid][pFMember]);
iniSetInt(File,"Rank",PlayerInfo[playerid][pRank]);
iniSetInt(File,"Zvan",PlayerInfo[playerid][pZvan]);
iniSetInt(File,"Char",PlayerInfo[playerid][pChar]);
iniSetInt(File,"CharSlot2",PlayerInfo[playerid][pCharSlot2]);
iniSetInt(File,"CharSlot3",PlayerInfo[playerid][pCharSlot3]);
iniSetInt(File,"CharSlot4",PlayerInfo[playerid][pCharSlot4]);
iniSetInt(File,"CharSlot5",PlayerInfo[playerid][pCharSlot5]);
iniSetInt(File,"ContractTime",PlayerInfo[playerid][pContractTime]);
iniSetInt(File,"DetSkill",PlayerInfo[playerid][pDetSkill]);
iniSetInt(File,"SexSkill",PlayerInfo[playerid][pSexSkill]);
iniSetInt(File,"BoxSkill",PlayerInfo[playerid][pBoxSkill]);
iniSetInt(File,"LawSkill",PlayerInfo[playerid][pLawSkill]);
iniSetInt(File,"MechSkill",PlayerInfo[playerid][pMechSkill]);
iniSetInt(File,"JackSkill",PlayerInfo[playerid][pJackSkill]);
iniSetInt(File,"VorSkill",PlayerInfo[playerid][pVorSkill]);
iniSetInt(File,"CarSkill",PlayerInfo[playerid][pCarSkill]);
iniSetInt(File,"NewsSkill",PlayerInfo[playerid][pNewsSkill]);
iniSetInt(File,"DrugsSkill",PlayerInfo[playerid][pDrugsSkill]);
iniSetInt(File,"CookSkill",PlayerInfo[playerid][pCookSkill]);
iniSetInt(File,"FishSkill",PlayerInfo[playerid][pFishSkill]);
iniSetFloat(File,"pSHealth",PlayerInfo[playerid][pSHealth]);
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
iniSetFloat(File,"pHealth",PlayerInfo[playerid][pHealth]);
iniSetInt(File,"Int",PlayerInfo[playerid][pInt]);
iniSetInt(File,"Local",PlayerInfo[playerid][pLocal]);
iniSetInt(File,"Team",PlayerInfo[playerid][pTeam]);
iniSetInt(File,"Model",PlayerInfo[playerid][pModel]);
iniSetInt(File,"PhoneNr",PlayerInfo[playerid][pPnumber]);
iniSetInt(File,"House",PlayerInfo[playerid][pPhousekey]);
iniSetInt(File,"Bizz",PlayerInfo[playerid][pPbiskey]);
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}
iniSetFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
iniSetFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
iniSetFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);
iniSetInt(File,"CarLic",PlayerInfo[playerid][pCarLic]);
iniSetInt(File,"FlyLic",PlayerInfo[playerid][pFlyLic]);
iniSetInt(File,"BoatLic",PlayerInfo[playerid][pBoatLic]);
iniSetInt(File,"FishLic",PlayerInfo[playerid][pFishLic]);
iniSetInt(File,"GunLic",PlayerInfo[playerid][pGunLic]);
iniSetInt(File,"Gun1",PlayerInfo[playerid][pGun1]);
iniSetInt(File,"Gun2",PlayerInfo[playerid][pGun2]);
iniSetInt(File,"Gun3",PlayerInfo[playerid][pGun3]);
iniSetInt(File,"Gun4",PlayerInfo[playerid][pGun4]);
iniSetInt(File,"Ammo1",PlayerInfo[playerid][pAmmo1]);
iniSetInt(File,"Ammo2",PlayerInfo[playerid][pAmmo2]);
iniSetInt(File,"Ammo3",PlayerInfo[playerid][pAmmo3]);
iniSetInt(File,"Ammo4",PlayerInfo[playerid][pAmmo4]);
iniSetInt(File,"CarTime",PlayerInfo[playerid][pCarTime]);
iniSetInt(File,"VorTime",PlayerInfo[playerid][pVorTime]);
iniSetInt(File,"PayDay",PlayerInfo[playerid][pPayDay]);
iniSetInt(File,"PayDayHad",PlayerInfo[playerid][pPayDayHad]);
iniSetInt(File,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
iniSetInt(File,"Wins",PlayerInfo[playerid][pWins]);
iniSetInt(File,"Loses",PlayerInfo[playerid][pLoses]);
iniSetInt(File,"AlcoholPerk",PlayerInfo[playerid][pAlcoholPerk]);
iniSetInt(File,"DrugPerk",PlayerInfo[playerid][pDrugPerk]);
iniSetInt(File,"MiserPerk",PlayerInfo[playerid][pMiserPerk]);
iniSetInt(File,"PainPerk",PlayerInfo[playerid][pPainPerk]);
iniSetInt(File,"TraderPerk",PlayerInfo[playerid][pTraderPerk]);
iniSetInt(File,"Tutorial",PlayerInfo[playerid][pTut]);
iniSetInt(File,"MuteTime",PlayerInfo[playerid][pMuteTime]);
iniSetInt(File,"AutoKey",PlayerInfo[playerid][pAutoKey]);
iniSetInt(File,"Mission",PlayerInfo[playerid][pMissionNr]);
iniSetInt(File,"Warnings",PlayerInfo[playerid][pWarns]);
iniSetInt(File,"Adjustable",PlayerInfo[playerid][pAdjustable]);
iniSetInt(File,"Fuel",PlayerInfo[playerid][pFuel]);
iniSetInt(File,"CarKey2",PlayerInfo[playerid][pCarKey2]);
iniSetInt(File,"CarKey3",PlayerInfo[playerid][pCarKey3]);
iniSetInt(File,"CarKey",PlayerInfo[playerid][pCarKey]);
iniSetInt(File,"Ord",PlayerInfo[playerid][pOrd]);
iniSetInt(File,"Sh",PlayerInfo[playerid][pSh]);
iniSetInt(File,"Mask",PlayerInfo[playerid][pMask]);
iniSetInt(File,"Balance",PlayerInfo[playerid][pBalance]);
iniSetInt(File,"ChangeName",PlayerInfo[playerid][pChangeName]);
iniSetInt(File,"Nalog",PlayerInfo[playerid][pNalog]);
iniSetInt(File,"MaskSkill",PlayerInfo[playerid][pMaskSkill]);
iniSetInt(File,"Pass",PlayerInfo[playerid][pPass]);
iniSetInt(File,"Married",PlayerInfo[playerid][pMarried]);
iniSetInt(File,"Inet",PlayerInfo[playerid][pInet]);
iniSetInt(File,"Vaip",PlayerInfo[playerid][pVaip]);
iniSetInt(File,"DonateTime",PlayerInfo[playerid][pDonateTime]);
new year, month, day;
getdate(year, month, day);
new strstre[100];
format(strstre,sizeof(strstre),"%d/%d/%d",day,month,year);
iniSet(File,"Online",strstre);
new ptemp[80];
format(ptemp,sizeof(ptemp),"%s",PlayerInfo[playerid][pMarriedTo]);
iniSet(File,"MarriedTo",ptemp);
iniClose(File);
}
}
}
return 1;
}
PHP:
public SaveAccounts()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
OnPlayerUpdate_GF(i);
if(PlayerInfo[i][pJob] > 0)
{
if(PlayerInfo[i][pContractTime] < 25)
{
PlayerInfo[i][pContractTime] ++;
}
}
}
}
SaveKilom();
}
Последнее редактирование модератором:
