[Pomoc] yini ne sprema novac i lvl

Započeo [GU:RP] Ivica, April 09, 2013, 21:11:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:pa radio sam na yininu i sve sam stavio kako treba i ne sprema lvl i novce. Hvala
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

pax95

Mogu li viditi kod kako cuvas i ucitavas jer ovako nemam ideja

forward loadaccount_user(playerid, name[], value[]);
public loadaccount_user(playerid, name[], value[])
{
    INI_String("Password", PlayerInfo[playerid][Pass],129);
    INI_Int("Level",PlayerInfo[playerid][pLevel]);//As explained above
    INI_Int("AdminLevel",PlayerInfo[playerid][Admin]); //As explained above
    INI_Int("GSLevel",PlayerInfo[playerid][pGameMaster]);//As explained above
    INI_Int("ConnectedTime",PlayerInfo[playerid][pConnectTime]);//As explained above
    INI_Int("Registered",PlayerInfo[playerid][pReg]);//As explained above
    INI_Int("Spol",PlayerInfo[playerid][pSex]);//As explained above
    INI_Int("Godine",PlayerInfo[playerid][pAge]);//As explained above
    INI_Int("Vikendica",PlayerInfo[playerid][pVikendica]);//As explained above
    INI_Int("Podrijetlo",PlayerInfo[playerid][pOrigin]);//As explained above
    INI_Int("Utisan",PlayerInfo[playerid][pMuted]);//As explained above
    INI_Int("Respekti",PlayerInfo[playerid][pExp]);//As explained above
    INI_Int("Novac",PlayerInfo[playerid][pCash]);//As explained above
    INI_Int("Banka",PlayerInfo[playerid][pAccount]);//As explained above
    INI_Int("Kredito",PlayerInfo[playerid][IznosRate]);//As explained above
    INI_Int("Kreditona",PlayerInfo[playerid][PreostaloZaOtplatu]);//As explained above
    INI_Int("Zlocini",PlayerInfo[playerid][pCrimes]);//As explained above
    INI_Int("Ubojstva",PlayerInfo[playerid][pKills]);//As explained above
    INI_Int("Ubijenputa",PlayerInfo[playerid][pDeaths]);//As explained above
    INI_Int("Uhicen",PlayerInfo[playerid][pArrested]);//As explained above
    INI_Int("WantedSmrti",PlayerInfo[playerid][pWantedDeaths]);//As explained above
    INI_Int("Imenik",PlayerInfo[playerid][pPhoneBook]);//As explained above
    INI_Int("Posao",PlayerInfo[playerid][pJob]);//As explained above
    INI_Int("PayCheck",PlayerInfo[playerid][pPayCheck]);//As explained above
    INI_Int("HeadValue",PlayerInfo[playerid][pHeadValue]);//As explained above
    INI_Int("Zatvoren",PlayerInfo[playerid][pJailed]);//As explained above
    INI_Int("Zatvorenna",PlayerInfo[playerid][pJailTime]);//As explained above
    INI_Int("Upozorenja",PlayerInfo[playerid][Opomenut]);//As explained above
    INI_Int("Materijali",PlayerInfo[playerid][pMats]);//As explained above
    INI_Int("Lider",PlayerInfo[playerid][Lider]);//As explained above
    INI_Int("Clan",PlayerInfo[playerid][Clan]);//As explained above
    INI_Int("FClan",PlayerInfo[playerid][pFMember]);//As explained above
    INI_Int("Rank",PlayerInfo[playerid][pRank]);//As explained above
    INI_Int("Char",PlayerInfo[playerid][pChar]);//As explained above
    INI_Int("ContractTime",PlayerInfo[playerid][pContractTime]);//As explained above
    INI_Int("Tutorial",PlayerInfo[playerid][pTut]);//As explained above
    INI_Int("Detskill",PlayerInfo[playerid][pDetSkill]);//As explained above
    INI_Int("Sexskill",PlayerInfo[playerid][pSexSkill]);//As explained above
    INI_Int("Lawskill",PlayerInfo[playerid][pLawSkill]);//As explained above
    INI_Int("Mechskill",PlayerInfo[playerid][pMechSkill]);//As explained above
    INI_Int("Newsskill",PlayerInfo[playerid][pNewsSkill]);//As explained above
    INI_Float("pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    INI_Float("pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);//As explained above
INI_Int("Int",PlayerInfo[playerid][pInt]);//As explained above
INI_Int("Local",PlayerInfo[playerid][pLocal]);//As explained above
INI_Int("Team",PlayerInfo[playerid][pTeam]);//As explained above
INI_Int("Model",PlayerInfo[playerid][pModel]);//As explained above
INI_Int("Mobitel",PlayerInfo[playerid][pPnumber]);//As explained above
INI_Int("Kuca",PlayerInfo[playerid][pPhousekey]);//As explained above
INI_Int("Kuca1",PlayerInfo[playerid][pPhousekey1]);//As explained above
INI_Int("Firma",PlayerInfo[playerid][pPbiskey]);//As explained above
INI_Int("Firma1",PlayerInfo[playerid][pPsiskey]);//As explained above
INI_Int("Firma2",PlayerInfo[playerid][pPbizkey]);//As explained above
INI_Int("VW",PlayerInfo[playerid][pVW]);//As explained above
INI_Int("Kredit",PlayerInfo[playerid][pKredit]);//As explained above
INI_Int("Donator",PlayerInfo[playerid][pDonator]);//As explained above
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;
}
INI_Float("Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);//As explained above
INI_Float("Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);//As explained above
INI_Float("Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);//As explained above
INI_Int("Vozacka",PlayerInfo[playerid][pCarLic]);//As explained above
INI_Int("DozvolaLetenje",PlayerInfo[playerid][DozvolaLetenje]);//As explained above
INI_Int("DozvolaPlovidba",PlayerInfo[playerid][DozvolaPlovidba]);//As explained above
INI_Int("DozvolaOruzje",PlayerInfo[playerid][DozvolaOruzje]);//As explained above
INI_Int("CDPlayer",PlayerInfo[playerid][pCDPlayer]);//As explained above
INI_Int("Stan",PlayerInfo[playerid][pStan]);//As explained above
INI_Int("Spawn",PlayerInfo[playerid][pSpawnChange]);//As explained above
INI_Float("pHCPos_x=%.1f\n",PlayerInfo[playerid][pHCPos_x]);//As explained above
INI_Float("pHCPos_y=%.1f\n",PlayerInfo[playerid][pHCPos_y]);//As explained above
INI_Float("pHCPos_z=%.1f\n",PlayerInfo[playerid][pHCPos_z]);//As explained above
INI_Float("pHCRot_=%.1f\n",PlayerInfo[playerid][pHCRot_]);//As explained above
INI_Int("HCCar",HCInfo[playerid][pHCar]);//As explained above
INI_Int("Vjencan",PlayerInfo[playerid][pMarried]);//As explained above
INI_Int("VjencanZa",PlayerInfo[playerid][pMarriedTo]);//As explained above
INI_Int("Zavezan",PlayerInfo[playerid][Zavezan]);//As explained above
INI_Int("Naocale",Dzep[playerid][xNaocare]);//As explained above
INI_Int("Kokica",Dzep[playerid][xKoka]);//As explained above
INI_Int("Sjemena",Dzep[playerid][xSemena]);//As explained above
INI_Int("Drugs",Dzep[playerid][xDroga]);//As explained above
INI_Int("Drogica",Stvari[playerid][zDroga]);//As explained above
INI_Int("Pizza",Stvari[playerid][zPizza]);//As explained above
INI_Int("Koksica",Stvari[playerid][zKoka]);//As explained above
INI_Int("Sjemenica",Stvari[playerid][zSemena]);//As explained above
INI_Int("Oruzjana",Stvari[playerid][zGDOruzje]);//As explained above
INI_Int("ProdajaOruzja",Stvari[playerid][zGDProdaja]);//As explained above
INI_Int("Uzica",Dzep[playerid][xUze]);//As explained above
INI_Int("Uze",Stvari[playerid][zUze]);//As explained above
INI_Int("Ciga",Dzep[playerid][xCigare]);//As explained above
INI_Int("Nick",PlayerInfo[playerid][Banovan]);//As explained above
INI_Int("Bannick",PlayerInfo[playerid][Bannick]);//As explained above
INI_Int("Cigara",Stvari[playerid][zCigare]);//As explained above
INI_Int("Upaljenko",Dzep[playerid][xUpaljac]);//As explained above
INI_Int("PayPo",PlayerInfo[playerid][pMinute]);//As explained above
INI_Int("RacunMobitel",PlayerInfo[playerid][RacunMobitel]);//As explained above
INI_Int("hHeal",PlayerInfo[playerid][hHealH]);//As explained above
INI_Int("Harmour",PlayerInfo[playerid][hArmourH]);//As explained above
INI_Int("TimUgovor",PlayerInfo[playerid][TimUgovor]);//As explained above
INI_Int("KaznaUgovor",PlayerInfo[playerid][KaznaUgovor]);//As explained above
INI_Int("DonOpcija",PlayerInfo[playerid][MozeDaGasiMobilni]);//As explained above
INI_Int("DetektivVrijeme",PlayerInfo[playerid][DetektivVreme]);//As explained above
INI_Int("DzVreme",PlayerInfo[playerid][DzeparosVreme]);//As explained above
INI_Int("KrVreme",PlayerInfo[playerid][KradljivacVreme]);//As explained above
INI_Int("MehVreme",PlayerInfo[playerid][MehanicarOdvoz]);//As explained above
INI_Int("ADvreme",PlayerInfo[playerid][AdTimer]);//As explained above
INI_Int("Kapa",PlayerInfo[playerid][pKapa]);//As explained above
INI_Int("Kosa",PlayerInfo[playerid][pKosa]);//As explained above
INI_Int("Kaciga",PlayerInfo[playerid][Kaciga]);//As explained above
INI_Int("Auto",Carlist[playerid][Typ]);//As explained above
INI_Int("Motor",Bikelist[playerid][bTyp]);//As explained above
INI_Int("Letjelica",Planelist[playerid][planeTyp]);//As explained above
INI_Int("Plovilo",Boatlist[playerid][BoatTyp]);//As explained above
INI_Int("Borbenistil",PlayerInfo[playerid][BorbeniStil]);//As explained above
    return 1;
}


evo spremanja

new INI:file = INI_Open(Path(playerid)); //will open their file
    INI_SetTag(file,"Player's Data");
    INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);
    INI_WriteInt(file,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
    INI_WriteInt(file,"Registered",PlayerInfo[playerid][pReg]);
    INI_WriteInt(file,"Spol",PlayerInfo[playerid][pSex]);
    INI_WriteInt(file,"Godine",PlayerInfo[playerid][pAge]);
    INI_WriteInt(file,"Vikendica",PlayerInfo[playerid][pVikendica]);
    INI_WriteInt(file,"Podrijetlo",PlayerInfo[playerid][pOrigin]);
    INI_WriteInt(file,"Utisan",PlayerInfo[playerid][pMuted]);
    INI_WriteInt(file,"Respekti",PlayerInfo[playerid][pExp]);
    INI_WriteInt(file,"Novac",GetPlayerMoney(playerid));
    INI_WriteInt(file,"Banka",PlayerInfo[playerid][pAccount]);
    INI_WriteInt(file,"Kredito",PlayerInfo[playerid][IznosRate]);
    INI_WriteInt(file,"Kreditona",PlayerInfo[playerid][PreostaloZaOtplatu]);
    INI_WriteInt(file,"Zlocini",PlayerInfo[playerid][pCrimes]);
    INI_WriteInt(file,"Ubojstva",PlayerInfo[playerid][pKills]);
    INI_WriteInt(file,"Ubijenputa",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(file,"Uhicen",PlayerInfo[playerid][pArrested]);
    INI_WriteInt(file,"WantedSmrti",PlayerInfo[playerid][pWantedDeaths]);
    INI_WriteInt(file,"Imenik",PlayerInfo[playerid][pPhoneBook]);
    INI_WriteInt(file,"Posao",PlayerInfo[playerid][pJob]);
    INI_WriteInt(file,"PayCheck",PlayerInfo[playerid][pPayCheck]);
    INI_WriteInt(file,"HeadValue",PlayerInfo[playerid][pHeadValue]);
    INI_WriteInt(file,"Zatvoren",PlayerInfo[playerid][pJailed]);
    INI_WriteInt(file,"Zatvorenna",PlayerInfo[playerid][pJailTime]);
    INI_WriteInt(file,"Upozorenja",PlayerInfo[playerid][Opomenut]);
    INI_WriteInt(file,"Materijali",PlayerInfo[playerid][pMats]);
    INI_WriteInt(file,"Lider",PlayerInfo[playerid][Lider]);
    INI_WriteInt(file,"Clan",PlayerInfo[playerid][Clan]);
    INI_WriteInt(file,"FClan",PlayerInfo[playerid][pFMember]);
    INI_WriteInt(file,"Rank",PlayerInfo[playerid][pRank]);
    INI_WriteInt(file,"Char",PlayerInfo[playerid][pChar]);
    INI_WriteInt(file,"ContractTime",PlayerInfo[playerid][pContractTime]);
    INI_WriteInt(file,"Tutorial",PlayerInfo[playerid][pTut]);
    INI_WriteInt(file,"Detskill",PlayerInfo[playerid][pDetSkill]);
    INI_WriteInt(file,"Sexskill",PlayerInfo[playerid][pSexSkill]);
    INI_WriteInt(file,"Lawskill",PlayerInfo[playerid][pLawSkill]);
    INI_WriteInt(file,"Mechskill",PlayerInfo[playerid][pMechSkill]);
    INI_WriteInt(file,"Newsskill",PlayerInfo[playerid][pNewsSkill]);
    INI_WriteFloat(file,"pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    INI_WriteFloat(file,"pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);
    INI_WriteInt(file,"Int",PlayerInfo[playerid][pInt]);
INI_WriteInt(file,"Local",PlayerInfo[playerid][pLocal]);
INI_WriteInt(file,"Team",PlayerInfo[playerid][pTeam]);
INI_WriteInt(file,"Model",PlayerInfo[playerid][pModel]);
INI_WriteInt(file,"Mobitel",PlayerInfo[playerid][pPnumber]);
INI_WriteInt(file,"Kuca",PlayerInfo[playerid][pPhousekey]);
INI_WriteInt(file,"Kuca1",PlayerInfo[playerid][pPhousekey1]);
INI_WriteInt(file,"Firma",PlayerInfo[playerid][pPbiskey]);
INI_WriteInt(file,"Firma1",PlayerInfo[playerid][pPsiskey]);
INI_WriteInt(file,"Firma2",PlayerInfo[playerid][pPbizkey]);
INI_WriteInt(file,"VW",PlayerInfo[playerid][pVW]);
INI_WriteInt(file,"Kredit",PlayerInfo[playerid][pKredit]);
INI_WriteInt(file,"Donator",PlayerInfo[playerid][pDonator]);
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;
}
INI_WriteFloat(file,"Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);//As explained above
INI_WriteFloat(file,"Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);//As explained above
INI_WriteFloat(file,"Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);//As explained above
INI_WriteFloat(file,"pHCPos_x=%.1f\n",PlayerInfo[playerid][pHCPos_x]);
INI_WriteFloat(file,"pHCPos_y=%.1f\n",PlayerInfo[playerid][pHCPos_y]);
INI_WriteFloat(file,"pHCPos_z=%.1f\n",PlayerInfo[playerid][pHCPos_z]);
INI_WriteFloat(file,"pHCRot_=%.1f\n",PlayerInfo[playerid][pHCRot_]);
INI_WriteInt(file,"Vozacka",PlayerInfo[playerid][pCarLic]);
INI_WriteInt(file,"DozvolaLetenje",PlayerInfo[playerid][DozvolaLetenje]);
INI_WriteInt(file,"DozvolaPlovidba",PlayerInfo[playerid][DozvolaPlovidba]);
INI_WriteInt(file,"DozvolaOruzje",PlayerInfo[playerid][DozvolaOruzje]);
INI_WriteInt(file,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
INI_WriteInt(file,"Stan",PlayerInfo[playerid][pStan]);
INI_WriteInt(file,"Spawn",PlayerInfo[playerid][pSpawnChange]);
INI_WriteInt(file,"HCCar",HCInfo[playerid][pHCar]);
INI_WriteInt(file,"Vjencan",PlayerInfo[playerid][pMarried]);
INI_WriteInt(file,"VjencanZa",PlayerInfo[playerid][pMarriedTo]);
INI_WriteInt(file,"Zavezan",PlayerInfo[playerid][Zavezan]);
INI_WriteInt(file,"Naocale",Dzep[playerid][xNaocare]);
INI_WriteInt(file,"Kokica",Dzep[playerid][xKoka]);
INI_WriteInt(file,"Sjemena",Dzep[playerid][xSemena]);
INI_WriteInt(file,"Drugs",Dzep[playerid][xDroga]);
INI_WriteInt(file,"Drogica",Stvari[playerid][zDroga]);
INI_WriteInt(file,"Pizza",Stvari[playerid][zPizza]);
INI_WriteInt(file,"Koksica",Stvari[playerid][zKoka]);
INI_WriteInt(file,"Sjemenica",Stvari[playerid][zSemena]);
INI_WriteInt(file,"Oruzjana",Stvari[playerid][zGDOruzje]);
INI_WriteInt(file,"ProdajaOruzja",Stvari[playerid][zGDProdaja]);//pickica
INI_WriteInt(file,"Uzica",Dzep[playerid][xUze]);
INI_WriteInt(file,"Uze",Stvari[playerid][zUze]);
INI_WriteInt(file,"Ciga",Dzep[playerid][xCigare]);
INI_WriteInt(file,"Nick",PlayerInfo[playerid][Banovan]);
INI_WriteInt(file,"Bannick",PlayerInfo[playerid][Bannick]);
INI_WriteInt(file,"Cigara",Stvari[playerid][zCigare]);
INI_WriteInt(file,"Upaljenko",Dzep[playerid][xUpaljac]);
INI_WriteInt(file,"PayPo",PlayerInfo[playerid][pMinute]);
INI_WriteInt(file,"RacunMobitel",PlayerInfo[playerid][RacunMobitel]);
INI_WriteInt(file,"hHeal",PlayerInfo[playerid][hHealH]);
INI_WriteInt(file,"Harmour",PlayerInfo[playerid][hArmourH]);
INI_WriteInt(file,"TimUgovor",PlayerInfo[playerid][TimUgovor]);
INI_WriteInt(file,"KaznaUgovor",PlayerInfo[playerid][KaznaUgovor]);
INI_WriteInt(file,"DonOpcija",PlayerInfo[playerid][MozeDaGasiMobilni]);
INI_WriteInt(file,"DetektivVrijeme",PlayerInfo[playerid][DetektivVreme]);
INI_WriteInt(file,"DzVreme",PlayerInfo[playerid][DzeparosVreme]);
INI_WriteInt(file,"KrVreme",PlayerInfo[playerid][KradljivacVreme]);
INI_WriteInt(file,"MehVreme",PlayerInfo[playerid][MehanicarOdvoz]);
INI_WriteInt(file,"ADvreme",PlayerInfo[playerid][AdTimer]);
INI_WriteInt(file,"Kapa",PlayerInfo[playerid][pKapa]);
INI_WriteInt(file,"Kosa",PlayerInfo[playerid][pKosa]);
INI_WriteInt(file,"Kaciga",PlayerInfo[playerid][Kaciga]);
INI_WriteInt(file,"Auto",Carlist[playerid][Typ]);
INI_WriteInt(file,"Motor",Bikelist[playerid][bTyp]);
INI_WriteInt(file,"Letjelica",Planelist[playerid][planeTyp]);
INI_WriteInt(file,"Plovilo",Boatlist[playerid][BoatTyp]);
INI_WriteInt(file,"Borbenistil",PlayerInfo[playerid][BorbeniStil]);
INI_Close(file);
Poslednja Izmena: April 09, 2013, 21:29:11 POSLE PODNE od ivica158

pax95

Dosla mi ideja sta ti fali :D
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);

Jednostavno te dve stvari posle ucitavanja dodaj jer kada se ucitaju ti te pare moras dati igracu i moras mu postaviti taj level (score) proveri da li imas to ako nemas nakon ucitavanja to odradis (kada se uloguje)

opet nece u fileu od mog acc upisan lvl 24 ja uden na server i lvl jedan sam

INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D

Kraden avatar bloomeru :*

pax95

Citat: CkusaColeCM poslato April 09, 2013, 22:05:46 POSLE PODNE
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D
Ne, ne mozes da kazem menjati sintaksu editora...
@Topic
SetPlayerScore taj sto sam ti rekao stavi pod onplayerspawn ili ko zna mozda negde ti resetujes to pLevel na 1 ali stavi da ti seta score kada ga spawna jer ako negde imas da seta na 1 onda moras stavljati posle toga da uradi ovaj deo jer da ne ucita level onda bi level bio 0

Citat: [BD] I'm a legend! poslato April 09, 2013, 22:11:34 POSLE PODNE
Citat: CkusaColeCM poslato April 09, 2013, 22:05:46 POSLE PODNE
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D
Ne, ne mozes da kazem menjati sintaksu editora...
@Topic
SetPlayerScore taj sto sam ti rekao stavi pod onplayerspawn ili ko zna mozda negde ti resetujes to pLevel na 1 ali stavi da ti seta score kada ga spawna jer ako negde imas da seta na 1 onda moras stavljati posle toga da uradi ovaj deo jer da ne ucita level onda bi level bio 0
btw. al pa pogledaj, ove djve su drugacije napisane i te dvije mu nezeli spremat o.O
pogledaj kako se razlikuju
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);

Kraden avatar bloomeru :*

pax95

Citat: CkusaColeCM poslato April 09, 2013, 22:13:21 POSLE PODNE
Citat: [BD] I'm a legend! poslato April 09, 2013, 22:11:34 POSLE PODNE
Citat: CkusaColeCM poslato April 09, 2013, 22:05:46 POSLE PODNE
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D
Ne, ne mozes da kazem menjati sintaksu editora...
@Topic
SetPlayerScore taj sto sam ti rekao stavi pod onplayerspawn ili ko zna mozda negde ti resetujes to pLevel na 1 ali stavi da ti seta score kada ga spawna jer ako negde imas da seta na 1 onda moras stavljati posle toga da uradi ovaj deo jer da ne ucita level onda bi level bio 0
btw. al pa pogledaj, ove djve su drugacije napisane i te dvije mu nezeli spremat o.O
pogledaj kako se razlikuju
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);

Nasmejah se slatko. Moras jos uciti i pogledaj na wiki kako funkcionise GetPlayerScore da se izrazim to su default funkcije. A primer PlayerInfo[playerid][pAdmin] kao sto si mogao i videti on je to definisao i dodao, a to je povezano sa enumulatorom...

Citat: CkusaColeCM poslato April 09, 2013, 22:13:21 POSLE PODNE
Citat: [BD] I'm a legend! poslato April 09, 2013, 22:11:34 POSLE PODNE
Citat: CkusaColeCM poslato April 09, 2013, 22:05:46 POSLE PODNE
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D
Ne, ne mozes da kazem menjati sintaksu editora...
@Topic
SetPlayerScore taj sto sam ti rekao stavi pod onplayerspawn ili ko zna mozda negde ti resetujes to pLevel na 1 ali stavi da ti seta score kada ga spawna jer ako negde imas da seta na 1 onda moras stavljati posle toga da uradi ovaj deo jer da ne ucita level onda bi level bio 0
btw. al pa pogledaj, ove djve su drugacije napisane i te dvije mu nezeli spremat o.O
pogledaj kako se razlikuju
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);


Jjajaahahha ne da sam se nasmejao xD rekao sam ti vec na skajp xD nego @Topic Pogledaj dali setas level pod onplayerspawn i to jer moze da bude zbog setanja problem

ja sam radio pema tutu to sa yinijem i tako je stavljeno pa sam logicno tako i radio dakle zakljucak je da:?Hvala


edit: meni se to sve prije postavljalo u public onplayerlogin to za novac i lvl i sve i sada ja nemrem podesit to na ovaj sistem ako me shvacate u onplayerlogin sa starim sistemom spremanja di mi je lijepo sve pisalo dobrodosao na server i to i ja sad toga nemam vise t imam ali neznam podesit, ako me shvacate.
Poslednja Izmena: April 09, 2013, 22:39:26 POSLE PODNE od ivica158

Citat: Dimi poslato April 09, 2013, 22:22:01 POSLE PODNE
Citat: CkusaColeCM poslato April 09, 2013, 22:13:21 POSLE PODNE
Citat: [BD] I'm a legend! poslato April 09, 2013, 22:11:34 POSLE PODNE
Citat: CkusaColeCM poslato April 09, 2013, 22:05:46 POSLE PODNE
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
a da ti mozda ovdje nefali na kraju pLevel ? ;O

Dakle

INI_WriteInt(file,"Level",GetPlayerScore[playerid][pLevel]);
a za novac zamjeni isto to samo
INI_WriteInt(file,"Novac",GetPlayerMoney[playerid][pNovac]);

Nadam se da ce pomoci :D
Ne, ne mozes da kazem menjati sintaksu editora...
@Topic
SetPlayerScore taj sto sam ti rekao stavi pod onplayerspawn ili ko zna mozda negde ti resetujes to pLevel na 1 ali stavi da ti seta score kada ga spawna jer ako negde imas da seta na 1 onda moras stavljati posle toga da uradi ovaj deo jer da ne ucita level onda bi level bio 0
btw. al pa pogledaj, ove djve su drugacije napisane i te dvije mu nezeli spremat o.O
pogledaj kako se razlikuju
INI_WriteInt(file,"Level",GetPlayerScore(playerid));
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);


Jjajaahahha ne da sam se nasmejao xD rekao sam ti vec na skajp xD nego @Topic Pogledaj dali setas level pod onplayerspawn i to jer moze da bude zbog setanja problem
A reko sam i ja tebi na skype :D

Kraden avatar bloomeru :*

ovo sto si rekao ne pomaze GetPlayerScore[playerid][pLevel]

Citat: ivica158 poslato April 09, 2013, 22:45:01 POSLE PODNE
ovo sto si rekao ne pomaze GetPlayerScore[playerid][pLevel]
Naravno da ne pomaze :D

Ako si sve uradio po tutorijalu (mrzi me da citam sve sad) onda 99,9% da ti negde seta level na 1, kao sto ti je Gagi vec rekao, da to ne radi, da ga ne sacuvava level bi ti bio 0.
stavi da ti sacuvava level na OnPlayerSpawn, ili probaj da nadjes tu funkciju gde ti stavlja level na 1 pa ispravi to

probaj vako :)
Onplayerspawn stavi

PlayerInfo[playerid][pLevel] = GetPlayerScore(playerid);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
SacuvajAcc(playerid);


napravi public SacuvajAcc

new INI:file = INI_Open(Path(playerid)); //will open their file
    INI_SetTag(file,"Player's Data");
    INI_WriteInt(file,"Level",PlayerInfo[playerid][pLevel]);
    INI_WriteInt(file,"AdminLevel",PlayerInfo[playerid][Admin]);
    INI_WriteInt(file,"GSLevel",PlayerInfo[playerid][pGameMaster]);
    INI_WriteInt(file,"ConnectedTime",PlayerInfo[playerid][pConnectTime]);
    INI_WriteInt(file,"Registered",PlayerInfo[playerid][pReg]);
    INI_WriteInt(file,"Spol",PlayerInfo[playerid][pSex]);
    INI_WriteInt(file,"Godine",PlayerInfo[playerid][pAge]);
    INI_WriteInt(file,"Vikendica",PlayerInfo[playerid][pVikendica]);
    INI_WriteInt(file,"Podrijetlo",PlayerInfo[playerid][pOrigin]);
    INI_WriteInt(file,"Utisan",PlayerInfo[playerid][pMuted]);
    INI_WriteInt(file,"Respekti",PlayerInfo[playerid][pExp]);
    INI_WriteInt(file,"Novac",PlayerInfo[playerid][pCash]);
    INI_WriteInt(file,"Banka",PlayerInfo[playerid][pAccount]);
    INI_WriteInt(file,"Kredito",PlayerInfo[playerid][IznosRate]);
    INI_WriteInt(file,"Kreditona",PlayerInfo[playerid][PreostaloZaOtplatu]);
    INI_WriteInt(file,"Zlocini",PlayerInfo[playerid][pCrimes]);
    INI_WriteInt(file,"Ubojstva",PlayerInfo[playerid][pKills]);
    INI_WriteInt(file,"Ubijenputa",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(file,"Uhicen",PlayerInfo[playerid][pArrested]);
    INI_WriteInt(file,"WantedSmrti",PlayerInfo[playerid][pWantedDeaths]);
    INI_WriteInt(file,"Imenik",PlayerInfo[playerid][pPhoneBook]);
    INI_WriteInt(file,"Posao",PlayerInfo[playerid][pJob]);
    INI_WriteInt(file,"PayCheck",PlayerInfo[playerid][pPayCheck]);
    INI_WriteInt(file,"HeadValue",PlayerInfo[playerid][pHeadValue]);
    INI_WriteInt(file,"Zatvoren",PlayerInfo[playerid][pJailed]);
    INI_WriteInt(file,"Zatvorenna",PlayerInfo[playerid][pJailTime]);
    INI_WriteInt(file,"Upozorenja",PlayerInfo[playerid][Opomenut]);
    INI_WriteInt(file,"Materijali",PlayerInfo[playerid][pMats]);
    INI_WriteInt(file,"Lider",PlayerInfo[playerid][Lider]);
    INI_WriteInt(file,"Clan",PlayerInfo[playerid][Clan]);
    INI_WriteInt(file,"FClan",PlayerInfo[playerid][pFMember]);
    INI_WriteInt(file,"Rank",PlayerInfo[playerid][pRank]);
    INI_WriteInt(file,"Char",PlayerInfo[playerid][pChar]);
    INI_WriteInt(file,"ContractTime",PlayerInfo[playerid][pContractTime]);
    INI_WriteInt(file,"Tutorial",PlayerInfo[playerid][pTut]);
    INI_WriteInt(file,"Detskill",PlayerInfo[playerid][pDetSkill]);
    INI_WriteInt(file,"Sexskill",PlayerInfo[playerid][pSexSkill]);
    INI_WriteInt(file,"Lawskill",PlayerInfo[playerid][pLawSkill]);
    INI_WriteInt(file,"Mechskill",PlayerInfo[playerid][pMechSkill]);
    INI_WriteInt(file,"Newsskill",PlayerInfo[playerid][pNewsSkill]);
    INI_WriteFloat(file,"pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);
    GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
    INI_WriteFloat(file,"pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);
    INI_WriteInt(file,"Int",PlayerInfo[playerid][pInt]);
INI_WriteInt(file,"Local",PlayerInfo[playerid][pLocal]);
INI_WriteInt(file,"Team",PlayerInfo[playerid][pTeam]);
INI_WriteInt(file,"Model",PlayerInfo[playerid][pModel]);
INI_WriteInt(file,"Mobitel",PlayerInfo[playerid][pPnumber]);
INI_WriteInt(file,"Kuca",PlayerInfo[playerid][pPhousekey]);
INI_WriteInt(file,"Kuca1",PlayerInfo[playerid][pPhousekey1]);
INI_WriteInt(file,"Firma",PlayerInfo[playerid][pPbiskey]);
INI_WriteInt(file,"Firma1",PlayerInfo[playerid][pPsiskey]);
INI_WriteInt(file,"Firma2",PlayerInfo[playerid][pPbizkey]);
INI_WriteInt(file,"VW",PlayerInfo[playerid][pVW]);
INI_WriteInt(file,"Kredit",PlayerInfo[playerid][pKredit]);
INI_WriteInt(file,"Donator",PlayerInfo[playerid][pDonator]);
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;
}
INI_WriteFloat(file,"Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);//As explained above
INI_WriteFloat(file,"Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);//As explained above
INI_WriteFloat(file,"Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);//As explained above
INI_WriteFloat(file,"pHCPos_x=%.1f\n",PlayerInfo[playerid][pHCPos_x]);
INI_WriteFloat(file,"pHCPos_y=%.1f\n",PlayerInfo[playerid][pHCPos_y]);
INI_WriteFloat(file,"pHCPos_z=%.1f\n",PlayerInfo[playerid][pHCPos_z]);
INI_WriteFloat(file,"pHCRot_=%.1f\n",PlayerInfo[playerid][pHCRot_]);
INI_WriteInt(file,"Vozacka",PlayerInfo[playerid][pCarLic]);
INI_WriteInt(file,"DozvolaLetenje",PlayerInfo[playerid][DozvolaLetenje]);
INI_WriteInt(file,"DozvolaPlovidba",PlayerInfo[playerid][DozvolaPlovidba]);
INI_WriteInt(file,"DozvolaOruzje",PlayerInfo[playerid][DozvolaOruzje]);
INI_WriteInt(file,"CDPlayer",PlayerInfo[playerid][pCDPlayer]);
INI_WriteInt(file,"Stan",PlayerInfo[playerid][pStan]);
INI_WriteInt(file,"Spawn",PlayerInfo[playerid][pSpawnChange]);
INI_WriteInt(file,"HCCar",HCInfo[playerid][pHCar]);
INI_WriteInt(file,"Vjencan",PlayerInfo[playerid][pMarried]);
INI_WriteInt(file,"VjencanZa",PlayerInfo[playerid][pMarriedTo]);
INI_WriteInt(file,"Zavezan",PlayerInfo[playerid][Zavezan]);
INI_WriteInt(file,"Naocale",Dzep[playerid][xNaocare]);
INI_WriteInt(file,"Kokica",Dzep[playerid][xKoka]);
INI_WriteInt(file,"Sjemena",Dzep[playerid][xSemena]);
INI_WriteInt(file,"Drugs",Dzep[playerid][xDroga]);
INI_WriteInt(file,"Drogica",Stvari[playerid][zDroga]);
INI_WriteInt(file,"Pizza",Stvari[playerid][zPizza]);
INI_WriteInt(file,"Koksica",Stvari[playerid][zKoka]);
INI_WriteInt(file,"Sjemenica",Stvari[playerid][zSemena]);
INI_WriteInt(file,"Oruzjana",Stvari[playerid][zGDOruzje]);
INI_WriteInt(file,"ProdajaOruzja",Stvari[playerid][zGDProdaja]);//pickica
INI_WriteInt(file,"Uzica",Dzep[playerid][xUze]);
INI_WriteInt(file,"Uze",Stvari[playerid][zUze]);
INI_WriteInt(file,"Ciga",Dzep[playerid][xCigare]);
INI_WriteInt(file,"Nick",PlayerInfo[playerid][Banovan]);
INI_WriteInt(file,"Bannick",PlayerInfo[playerid][Bannick]);
INI_WriteInt(file,"Cigara",Stvari[playerid][zCigare]);
INI_WriteInt(file,"Upaljenko",Dzep[playerid][xUpaljac]);
INI_WriteInt(file,"PayPo",PlayerInfo[playerid][pMinute]);
INI_WriteInt(file,"RacunMobitel",PlayerInfo[playerid][RacunMobitel]);
INI_WriteInt(file,"hHeal",PlayerInfo[playerid][hHealH]);
INI_WriteInt(file,"Harmour",PlayerInfo[playerid][hArmourH]);
INI_WriteInt(file,"TimUgovor",PlayerInfo[playerid][TimUgovor]);
INI_WriteInt(file,"KaznaUgovor",PlayerInfo[playerid][KaznaUgovor]);
INI_WriteInt(file,"DonOpcija",PlayerInfo[playerid][MozeDaGasiMobilni]);
INI_WriteInt(file,"DetektivVrijeme",PlayerInfo[playerid][DetektivVreme]);
INI_WriteInt(file,"DzVreme",PlayerInfo[playerid][DzeparosVreme]);
INI_WriteInt(file,"KrVreme",PlayerInfo[playerid][KradljivacVreme]);
INI_WriteInt(file,"MehVreme",PlayerInfo[playerid][MehanicarOdvoz]);
INI_WriteInt(file,"ADvreme",PlayerInfo[playerid][AdTimer]);
INI_WriteInt(file,"Kapa",PlayerInfo[playerid][pKapa]);
INI_WriteInt(file,"Kosa",PlayerInfo[playerid][pKosa]);
INI_WriteInt(file,"Kaciga",PlayerInfo[playerid][Kaciga]);
INI_WriteInt(file,"Auto",Carlist[playerid][Typ]);
INI_WriteInt(file,"Motor",Bikelist[playerid][bTyp]);
INI_WriteInt(file,"Letjelica",Planelist[playerid][planeTyp]);
INI_WriteInt(file,"Plovilo",Boatlist[playerid][BoatTyp]);
INI_WriteInt(file,"Borbenistil",PlayerInfo[playerid][BorbeniStil]);
INI_Close(file);


i sada pod onplayerconnect.. tjst ispod onog djela kada je vec ucialo acc stavi

SetPlayerScore(playerid, PlayerInfo[playerid][pLeve]);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);


Trebalo bi radit :)