Skriptu koju koristim: Svoj LK v0.8
Detaljan opis problema: Gledajte kada se registrujem sve radi sacuva accounte tako svima kada naprimer setam nesto sebi ili nesto drugom ne sacuva ni kad je ig ni kad ide relog probao sam i /sacuvajacounte nece ne znam sta da radim update sam i YSI i dalje nece
Dio skripte: ne znam do cega
Neke slike/video za lakse dobivanje pomoci(neobavezno): msm da je nepotrebno
Posalji kod za cuvanje.
[pawn]stock SavePlayer(playerid)
{
if(UlogovanProvera[playerid] == 1)
{
new StrText[80];
format(StrText, 80, KORISNICI, GetName(playerid));
if(fexist(StrText))
{
new INI:File = INI_Open(StrText);
INI_SetTag(File,"data");
INI_WriteInt(File,"NovacDzep",PlayerInfo[playerid][pNovacDzep]);
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Ubistava",PlayerInfo[playerid][pUbistava]);
INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File,"Helper",PlayerInfo[playerid][pGM]);
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
INI_WriteInt(File,"Godine",PlayerInfo[playerid][pGodine]);
INI_WriteInt(File,"Drzava",PlayerInfo[playerid][pDrzava]);
INI_WriteInt(File,"Pol",PlayerInfo[playerid][pSex]);
INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
INI_WriteString(File,"LastSeen",PlayerInfo[playerid][pLastSeen]);
INI_WriteInt(File,"Lider",PlayerInfo[playerid][pLider]);
INI_WriteInt(File,"Clan",PlayerInfo[playerid][pClan]);
INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
INI_WriteInt(File,"Mutiran",PlayerInfo[playerid][pMutiran]);
INI_WriteInt(File,"NovacBanka",PlayerInfo[playerid][pNovacBanka]);
INI_WriteInt(File,"Warn",PlayerInfo[playerid][pWarn]);
INI_WriteInt(File,"BankovniRacun",PlayerInfo[playerid][pBankovniRacun]);
INI_WriteInt(File,"Zatvor",PlayerInfo[playerid][pZatvor]);
INI_WriteInt(File,"ZatvorenVreme",PlayerInfo[playerid][pZatvorenVreme]);
INI_WriteInt(File,"MutiranVreme",PlayerInfo[playerid][pMutiranVreme]);
INI_WriteInt(File,"Respekti",PlayerInfo[playerid][pExp]);
INI_WriteInt(File,"UhapsenPuta",PlayerInfo[playerid][pUhapsenPuta]);
INI_WriteInt(File,"Droga",PlayerInfo[playerid][pDroga]);
INI_WriteInt(File,"Mats",PlayerInfo[playerid][pMats]);
INI_WriteInt(File,"PayDayPoeni",PlayerInfo[playerid][pPayDayPoeni]);
INI_WriteInt(File,"SatiIgre",PlayerInfo[playerid][pSatiIgre]);
INI_WriteInt(File,"IznosRate",PlayerInfo[playerid][pIznosRate]);
INI_WriteInt(File,"IznosKredita",PlayerInfo[playerid][pIznosKredita]);
INI_WriteInt(File,"PreostaloZaOtplatu",PlayerInfo[playerid][pPreostaloZaOtplatu]);
INI_WriteInt(File,"ADozvola",PlayerInfo[playerid][pADozvola]);
INI_WriteInt(File,"KamionDozvola",PlayerInfo[playerid][pKamionDozvola]);
INI_WriteInt(File,"AvionDozvola",PlayerInfo[playerid][pAvionDozvola]);
INI_WriteInt(File,"MotorDozvola",PlayerInfo[playerid][pMotorDozvola]);
INI_WriteInt(File,"BrodDozvola",PlayerInfo[playerid][pBrodDozvola]);
INI_WriteInt(File,"GunDozvola",PlayerInfo[playerid][pGunDozvola]);
INI_WriteInt(File,"PosedovanjeFirme",PlayerInfo[playerid][pPosedovanjeFirme]);
INI_WriteInt(File,"Mobilni",PlayerInfo[playerid][pMobilni]);
INI_WriteInt(File,"Kartica",PlayerInfo[playerid][pKartica]);
INI_WriteInt(File,"Imenik",PlayerInfo[playerid][pImenik]);
INI_WriteInt(File,"MobKredit",PlayerInfo[playerid][pMobKredit]);
INI_WriteInt(File,"Cigare",PlayerInfo[playerid][pCigare]);
INI_WriteInt(File,"Upaljac",PlayerInfo[playerid][pUpaljac]);
INI_WriteInt(File,"Kanap",PlayerInfo[playerid][pKanap]);
INI_WriteInt(File,"Naocare",PlayerInfo[playerid][pNaocare]);
INI_WriteInt(File,"Sat",PlayerInfo[playerid][pSat]);
INI_WriteInt(File,"BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
INI_WriteInt(File,"Posao",PlayerInfo[playerid][pPosao]);
INI_WriteInt(File,"Hrana",PlayerInfo[playerid][pHrana]);
INI_WriteInt(File,"Radio",PlayerInfo[playerid][pRadio]);
INI_WriteInt(File,"PosedovanjeKuce",PlayerInfo[playerid][pPosedovanjeKuce]);
INI_WriteInt(File,"ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
INI_WriteInt(File,"Rent",PlayerInfo[playerid][pRent]);
INI_WriteInt(File,"PosedovanjeStana",PlayerInfo[playerid][pPosedovanjeStana]);
INI_WriteInt(File,"PosedovanjeVikendice",PlayerInfo[playerid][pPosedovanjeVikendice]);
INI_WriteInt(File,"OrgUgovor",PlayerInfo[playerid][pOrgUgovor]);
INI_WriteInt(File,"PosaoUgovor",PlayerInfo[playerid][pPosaoUgovor]);
INI_WriteInt(File,"PosedovanjeAuta",PlayerInfo[playerid][pPosedovanjeAuta]);
INI_WriteInt(File,"PosedovanjeAuta2",PlayerInfo[playerid][pPosedovanjeAuta2]);
INI_WriteInt(File,"DzeparosVreme",PlayerInfo[playerid][pDzeparosVreme]);
INI_WriteInt(File,"PosedovanjeMotora",PlayerInfo[playerid][pPosedovanjeMotora]);
INI_WriteInt(File,"Kaciga",PlayerInfo[playerid][pKaciga]);
INI_WriteInt(File,"PosedovanjeBicikla",PlayerInfo[playerid][pPosedovanjeBicikla]);
INI_WriteInt(File,"PosedovanjeAviona", PlayerInfo[playerid][pPosedovanjeAviona]);
INI_WriteInt(File,"PosedovanjePlovila", PlayerInfo[playerid][pPosedovanjePlovila]);
INI_WriteInt(File,"DonatorBodovi", PlayerInfo[playerid][pDonatorBodovi]);
INI_WriteInt(File,"Promoter", PlayerInfo[playerid][pPromoter]);
INI_WriteInt(File,"Vip", PlayerInfo[playerid][pVip]);
INI_WriteInt(File,"Radi", PlayerInfo[playerid][pRadi]);
INI_WriteInt(File,"RobBank",PlayerInfo[playerid][pRobbankVreme]);
INI_WriteInt(File,"KonopacVreme",PlayerInfo[playerid][pKonopacVreme]);
INI_WriteInt(File,"ElektricarVremeDoKraja",PlayerInfo[playerid][pElektricarVreme]);
INI_WriteInt(File,"Narucen",PlayerInfo[playerid][pNarucen]);
INI_WriteInt(File,"Skripter",PlayerInfo[playerid][pSkripter]);
INI_WriteInt(File,"DvaV",PlayerInfo[playerid][pDvaV]);
INI_WriteInt(File,"Mutirang",PlayerInfo[playerid][pMuteg]);
INI_WriteInt(File,"Diploma",PlayerInfo[playerid][pDiploma]);
INI_WriteInt(File,"Vabjuzera",PlayerInfo[playerid][pVabjuzer]);
INI_WriteInt(File,"Vlidera",PlayerInfo[playerid][pVlidera]);
INI_WriteInt(File,"Kantica",PlayerInfo[playerid][pKantica]);
INI_WriteInt(File,"abjuzera",PlayerInfo[playerid][pAbjuzer]);
INI_WriteInt(File,"Vlasnik",PlayerInfo[playerid][pVlasnik]);
INI_WriteInt(File,"Pasos",PlayerInfo[playerid][pPasos]);
INI_WriteInt(File,"Kzlato",PlayerInfo[playerid][pKzlato]);
INI_WriteInt(File,"Married",PlayerInfo[playerid][pMarried]);
INI_WriteInt(File,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
INI_WriteInt(File,"War",PlayerInfo[playerid][pWar]);
INI_WriteInt(File,"Bonus",PlayerInfo[playerid][pBonus]);
INI_WriteInt(File,"Imunitet",PlayerInfo[playerid][pImunitet]);
INI_WriteInt(File,"Imunitett",PlayerInfo[playerid][pImunitett]);
INI_WriteInt(File,"Zlato",PlayerInfo[playerid][pZlato]);
INI_WriteInt(File,"Zivot",PlayerInfo[playerid][pZivot]);
INI_WriteInt(File,"LotoBr1",PlayerInfo[playerid][pLottoNr]);
INI_WriteInt(File,"Wanted",PlayerInfo[playerid][pTrazeniLevel]);
INI_WriteInt(File,"RPucitelj",PlayerInfo[playerid][pRPucitelj]);
INI_WriteInt(File, "PistolSkill",PlayerInfo[playerid][pPistSkill]);
INI_WriteInt(File, "SilencedSkill",PlayerInfo[playerid][pSilenSkill]);
INI_WriteInt(File, "DesertSkill",PlayerInfo[playerid][pDesertSkill]);
INI_WriteInt(File, "ShotgunSkill",PlayerInfo[playerid][pShotgSkill]);
INI_WriteInt(File, "SawnoffSkill",PlayerInfo[playerid][pSawnSkill]);
INI_WriteInt(File, "CombatSkill",PlayerInfo[playerid][pCombSkill]);
INI_WriteInt(File, "UziSkill",PlayerInfo[playerid][pUziSkill]);
INI_WriteInt(File, "SMGSkill",PlayerInfo[playerid][pSmgSkill]);
INI_WriteInt(File, "AK47Skill",PlayerInfo[playerid][pAkSkill]);
INI_WriteInt(File, "M4Skill",PlayerInfo[playerid][pM4Skill]);
INI_WriteInt(File, "RPucitelj",PlayerInfo[playerid][pRPucitelj]);
INI_WriteInt(File, "Didzej",PlayerInfo[playerid][pDidzej]);
INI_Close(File);
}
}
return 1;
}[/pawn]
imas li stock saveplayer pod diskonekt player? mozda zato ne cuva, i kod svakog makeadmin makeleader moras imat saveplayer, da to sve snimi..
a kod konekta load
Prvo proveri da li igrac dobija vrednost na promenljivoj UlogovanProvera = 1 jer to ti je uslov. Zatim ako dobija sa print proveri kako radi i dokle radi. Ubaci ovo ispod.
[pawn]stock SavePlayer(playerid)
{
print("PROVERA 1");
if(UlogovanProvera[playerid] == 1)
{
print("PROVERA 2");
new StrText[80];
format(StrText, 80, KORISNICI, GetName(playerid));
if(fexist(StrText))
{
print("PROVERA 3");
new INI:File = INI_Open(StrText);
INI_SetTag(File,"data");
INI_WriteInt(File,"NovacDzep",PlayerInfo[playerid][pNovacDzep]);
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Ubistava",PlayerInfo[playerid][pUbistava]);
INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File,"Helper",PlayerInfo[playerid][pGM]);
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
INI_WriteInt(File,"Godine",PlayerInfo[playerid][pGodine]);
INI_WriteInt(File,"Drzava",PlayerInfo[playerid][pDrzava]);
INI_WriteInt(File,"Pol",PlayerInfo[playerid][pSex]);
INI_WriteInt(File,"Tutorial",PlayerInfo[playerid][pTutorial]);
INI_WriteString(File,"Email",PlayerInfo[playerid][pEmail]);
INI_WriteString(File,"LastSeen",PlayerInfo[playerid][pLastSeen]);
INI_WriteInt(File,"Lider",PlayerInfo[playerid][pLider]);
INI_WriteInt(File,"Clan",PlayerInfo[playerid][pClan]);
INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
INI_WriteInt(File,"Mutiran",PlayerInfo[playerid][pMutiran]);
INI_WriteInt(File,"NovacBanka",PlayerInfo[playerid][pNovacBanka]);
INI_WriteInt(File,"Warn",PlayerInfo[playerid][pWarn]);
INI_WriteInt(File,"BankovniRacun",PlayerInfo[playerid][pBankovniRacun]);
INI_WriteInt(File,"Zatvor",PlayerInfo[playerid][pZatvor]);
INI_WriteInt(File,"ZatvorenVreme",PlayerInfo[playerid][pZatvorenVreme]);
INI_WriteInt(File,"MutiranVreme",PlayerInfo[playerid][pMutiranVreme]);
INI_WriteInt(File,"Respekti",PlayerInfo[playerid][pExp]);
INI_WriteInt(File,"UhapsenPuta",PlayerInfo[playerid][pUhapsenPuta]);
INI_WriteInt(File,"Droga",PlayerInfo[playerid][pDroga]);
INI_WriteInt(File,"Mats",PlayerInfo[playerid][pMats]);
INI_WriteInt(File,"PayDayPoeni",PlayerInfo[playerid][pPayDayPoeni]);
INI_WriteInt(File,"SatiIgre",PlayerInfo[playerid][pSatiIgre]);
INI_WriteInt(File,"IznosRate",PlayerInfo[playerid][pIznosRate]);
INI_WriteInt(File,"IznosKredita",PlayerInfo[playerid][pIznosKredita]);
INI_WriteInt(File,"PreostaloZaOtplatu",PlayerInfo[playerid][pPreostaloZaOtplatu]);
INI_WriteInt(File,"ADozvola",PlayerInfo[playerid][pADozvola]);
INI_WriteInt(File,"KamionDozvola",PlayerInfo[playerid][pKamionDozvola]);
INI_WriteInt(File,"AvionDozvola",PlayerInfo[playerid][pAvionDozvola]);
INI_WriteInt(File,"MotorDozvola",PlayerInfo[playerid][pMotorDozvola]);
INI_WriteInt(File,"BrodDozvola",PlayerInfo[playerid][pBrodDozvola]);
INI_WriteInt(File,"GunDozvola",PlayerInfo[playerid][pGunDozvola]);
INI_WriteInt(File,"PosedovanjeFirme",PlayerInfo[playerid][pPosedovanjeFirme]);
INI_WriteInt(File,"Mobilni",PlayerInfo[playerid][pMobilni]);
INI_WriteInt(File,"Kartica",PlayerInfo[playerid][pKartica]);
INI_WriteInt(File,"Imenik",PlayerInfo[playerid][pImenik]);
INI_WriteInt(File,"MobKredit",PlayerInfo[playerid][pMobKredit]);
INI_WriteInt(File,"Cigare",PlayerInfo[playerid][pCigare]);
INI_WriteInt(File,"Upaljac",PlayerInfo[playerid][pUpaljac]);
INI_WriteInt(File,"Kanap",PlayerInfo[playerid][pKanap]);
INI_WriteInt(File,"Naocare",PlayerInfo[playerid][pNaocare]);
INI_WriteInt(File,"Sat",PlayerInfo[playerid][pSat]);
INI_WriteInt(File,"BorbeniStil",PlayerInfo[playerid][pBorbeniStil]);
INI_WriteInt(File,"Posao",PlayerInfo[playerid][pPosao]);
INI_WriteInt(File,"Hrana",PlayerInfo[playerid][pHrana]);
INI_WriteInt(File,"Radio",PlayerInfo[playerid][pRadio]);
INI_WriteInt(File,"PosedovanjeKuce",PlayerInfo[playerid][pPosedovanjeKuce]);
INI_WriteInt(File,"ProveraSpawna",PlayerInfo[playerid][pProveraSpawna]);
INI_WriteInt(File,"Rent",PlayerInfo[playerid][pRent]);
INI_WriteInt(File,"PosedovanjeStana",PlayerInfo[playerid][pPosedovanjeStana]);
INI_WriteInt(File,"PosedovanjeVikendice",PlayerInfo[playerid][pPosedovanjeVikendice]);
INI_WriteInt(File,"OrgUgovor",PlayerInfo[playerid][pOrgUgovor]);
INI_WriteInt(File,"PosaoUgovor",PlayerInfo[playerid][pPosaoUgovor]);
INI_WriteInt(File,"PosedovanjeAuta",PlayerInfo[playerid][pPosedovanjeAuta]);
INI_WriteInt(File,"PosedovanjeAuta2",PlayerInfo[playerid][pPosedovanjeAuta2]);
INI_WriteInt(File,"DzeparosVreme",PlayerInfo[playerid][pDzeparosVreme]);
INI_WriteInt(File,"PosedovanjeMotora",PlayerInfo[playerid][pPosedovanjeMotora]);
INI_WriteInt(File,"Kaciga",PlayerInfo[playerid][pKaciga]);
INI_WriteInt(File,"PosedovanjeBicikla",PlayerInfo[playerid][pPosedovanjeBicikla]);
INI_WriteInt(File,"PosedovanjeAviona", PlayerInfo[playerid][pPosedovanjeAviona]);
INI_WriteInt(File,"PosedovanjePlovila", PlayerInfo[playerid][pPosedovanjePlovila]);
INI_WriteInt(File,"DonatorBodovi", PlayerInfo[playerid][pDonatorBodovi]);
INI_WriteInt(File,"Promoter", PlayerInfo[playerid][pPromoter]);
INI_WriteInt(File,"Vip", PlayerInfo[playerid][pVip]);
INI_WriteInt(File,"Radi", PlayerInfo[playerid][pRadi]);
INI_WriteInt(File,"RobBank",PlayerInfo[playerid][pRobbankVreme]);
INI_WriteInt(File,"KonopacVreme",PlayerInfo[playerid][pKonopacVreme]);
INI_WriteInt(File,"ElektricarVremeDoKraja",PlayerInfo[playerid][pElektricarVreme]);
INI_WriteInt(File,"Narucen",PlayerInfo[playerid][pNarucen]);
INI_WriteInt(File,"Skripter",PlayerInfo[playerid][pSkripter]);
INI_WriteInt(File,"DvaV",PlayerInfo[playerid][pDvaV]);
INI_WriteInt(File,"Mutirang",PlayerInfo[playerid][pMuteg]);
INI_WriteInt(File,"Diploma",PlayerInfo[playerid][pDiploma]);
INI_WriteInt(File,"Vabjuzera",PlayerInfo[playerid][pVabjuzer]);
INI_WriteInt(File,"Vlidera",PlayerInfo[playerid][pVlidera]);
INI_WriteInt(File,"Kantica",PlayerInfo[playerid][pKantica]);
INI_WriteInt(File,"abjuzera",PlayerInfo[playerid][pAbjuzer]);
INI_WriteInt(File,"Vlasnik",PlayerInfo[playerid][pVlasnik]);
INI_WriteInt(File,"Pasos",PlayerInfo[playerid][pPasos]);
INI_WriteInt(File,"Kzlato",PlayerInfo[playerid][pKzlato]);
INI_WriteInt(File,"Married",PlayerInfo[playerid][pMarried]);
INI_WriteInt(File,"MarriedTo",PlayerInfo[playerid][pMarriedTo]);
INI_WriteInt(File,"War",PlayerInfo[playerid][pWar]);
INI_WriteInt(File,"Bonus",PlayerInfo[playerid][pBonus]);
INI_WriteInt(File,"Imunitet",PlayerInfo[playerid][pImunitet]);
INI_WriteInt(File,"Imunitett",PlayerInfo[playerid][pImunitett]);
INI_WriteInt(File,"Zlato",PlayerInfo[playerid][pZlato]);
INI_WriteInt(File,"Zivot",PlayerInfo[playerid][pZivot]);
INI_WriteInt(File,"LotoBr1",PlayerInfo[playerid][pLottoNr]);
INI_WriteInt(File,"Wanted",PlayerInfo[playerid][pTrazeniLevel]);
INI_WriteInt(File,"RPucitelj",PlayerInfo[playerid][pRPucitelj]);
INI_WriteInt(File, "PistolSkill",PlayerInfo[playerid][pPistSkill]);
INI_WriteInt(File, "SilencedSkill",PlayerInfo[playerid][pSilenSkill]);
INI_WriteInt(File, "DesertSkill",PlayerInfo[playerid][pDesertSkill]);
INI_WriteInt(File, "ShotgunSkill",PlayerInfo[playerid][pShotgSkill]);
INI_WriteInt(File, "SawnoffSkill",PlayerInfo[playerid][pSawnSkill]);
INI_WriteInt(File, "CombatSkill",PlayerInfo[playerid][pCombSkill]);
INI_WriteInt(File, "UziSkill",PlayerInfo[playerid][pUziSkill]);
INI_WriteInt(File, "SMGSkill",PlayerInfo[playerid][pSmgSkill]);
INI_WriteInt(File, "AK47Skill",PlayerInfo[playerid][pAkSkill]);
INI_WriteInt(File, "M4Skill",PlayerInfo[playerid][pM4Skill]);
INI_WriteInt(File, "RPucitelj",PlayerInfo[playerid][pRPucitelj]);
INI_WriteInt(File, "Didzej",PlayerInfo[playerid][pDidzej]);
INI_Close(File);
}
}
print("PROVERA GOTOVO");
return 1;
}
[/pawn]
Mada ja mislim da ti je vrv do promenljive UlogovanProvera. Vrv si cackao nesto kod logina i sjebao to :D
Runaj samp-server.exe kao administrator pa se reg pa se onda probaj logirati
lock > koristis stari formular + pogresno ime teme(ispravio sam ja)