[Pomoc]spremanje novca


Započeo [BC]spiele, Jun 23, 2011, 22:34:33 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:gf
Detaljan opis problema:dakel aj imam 700$ i zaradim jos 300$ znaci sveukupno 1000$ i kad odem off taj novac mi nestane :S
znaci kako da napravim kad odem off da mi se novac spremi ??.
Dio skripte:
public OnPlayerDisconnect(playerid)
{
	new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Level", PlayerInfo[playerid][pLevel]);
        dini_IntSet(file, "Novac", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdmin]);
        dini_IntSet(file, "GameMaster",PlayerInfo[playerid][pGameMaster]);
        dini_IntSet(file, "TestGameMaster",PlayerInfo[playerid][pTestGameMaster]);
        dini_IntSet(file, "Racun",PlayerInfo[playerid][pAccount]);
        dini_IntSet(file, "Donator",PlayerInfo[playerid][pDonateRank]);
        dini_IntSet(file, "UpgradeBodovi",PlayerInfo[playerid][gPupgrade]);
        dini_IntSet(file, "VrijemeSpajanja",PlayerInfo[playerid][pConnectTime]);
        dini_IntSet(file, "Registracija",PlayerInfo[playerid][pReg]);
        dini_IntSet(file, "Spol",PlayerInfo[playerid][pSex]);
        dini_IntSet(file, "Godine",PlayerInfo[playerid][pAge]);
        dini_IntSet(file, "CK",PlayerInfo[playerid][pCK]);
        dini_IntSet(file, "Bodovi",PlayerInfo[playerid][pRespecti]);
        dini_IntSet(file, "Ubojstva",PlayerInfo[playerid][pKills]);
        dini_IntSet(file, "Smrti",PlayerInfo[playerid][pDeaths]);
        dini_IntSet(file, "Uhicivan",PlayerInfo[playerid][pArrested]);
        dini_IntSet(file, "WantedUbojstva",PlayerInfo[playerid][pWantedDeaths]);
        dini_IntSet(file, "Imenik",PlayerInfo[playerid][pPhoneBook]);
        dini_IntSet(file, "LotoBroj",PlayerInfo[playerid][pLottoNr]);
        dini_IntSet(file, "Posao",PlayerInfo[playerid][pJob]);
        dini_IntSet(file, "PayCheck",PlayerInfo[playerid][pPayCheck]);
        dini_IntSet(file, "HeadValue",PlayerInfo[playerid][pHeadValue]);
        dini_IntSet(file, "Zatvorenik",PlayerInfo[playerid][pJailed]);
        dini_IntSet(file, "VrijemeZatvora",PlayerInfo[playerid][pJailTime]);
        dini_IntSet(file, "Materijali",PlayerInfo[playerid][pMats]);
        dini_IntSet(file, "Droga",PlayerInfo[playerid][pDrugs]);
        dini_IntSet(file, "Lider",PlayerInfo[playerid][pLeader]);
        dini_IntSet(file, "Clan",PlayerInfo[playerid][pMember]);
        dini_IntSet(file, "FMember",PlayerInfo[playerid][pFMember]);
        dini_IntSet(file, "Rank",PlayerInfo[playerid][pRank]);
        dini_IntSet(file, "Char",PlayerInfo[playerid][pChar]);
        dini_IntSet(file, "Ugovor",PlayerInfo[playerid][pContractTime]);
        dini_IntSet(file, "DetektivSkill",PlayerInfo[playerid][pDetSkill]);
        dini_IntSet(file, "SEXSkill",PlayerInfo[playerid][pSexSkill]);
        dini_IntSet(file, "BoxSkill",PlayerInfo[playerid][pBoxSkill]);
        dini_IntSet(file, "OdvjetnikSkill",PlayerInfo[playerid][pLawSkill]);
        dini_IntSet(file, "MehanicarSkill",PlayerInfo[playerid][pMechSkill]);
        dini_IntSet(file, "KradljivacSkill",PlayerInfo[playerid][pJackSkill]);
        dini_IntSet(file, "CarSkill",PlayerInfo[playerid][pCarSkill]);
        dini_IntSet(file, "NovinarSkill",PlayerInfo[playerid][pNewsSkill]);
        dini_IntSet(file, "DilerDrogeSkill",PlayerInfo[playerid][pDrugsSkill]);
        dini_IntSet(file, "KuharSkill",PlayerInfo[playerid][pCookSkill]);
        dini_IntSet(file, "RibarSkill",PlayerInfo[playerid][pFishSkill]);
        dini_IntSet(file, "Int",PlayerInfo[playerid][pInt]);
        dini_IntSet(file, "Local",PlayerInfo[playerid][pLocal]);
        dini_IntSet(file, "Team",PlayerInfo[playerid][pTeam]);
        dini_IntSet(file, "Model",PlayerInfo[playerid][pModel]);
        dini_IntSet(file, "BrojM",PlayerInfo[playerid][pPnumber]);
        dini_IntSet(file, "Kuca",PlayerInfo[playerid][pPhousekey]);
        dini_IntSet(file, "Bizz",PlayerInfo[playerid][pPbiskey]);
       	dini_IntSet(file, "Vozacka", PlayerInfo[playerid][pCarLic]);
	    dini_IntSet(file, "PilotskaDozvola", PlayerInfo[playerid][pFlyLic]);
    	dini_IntSet(file, "BrodskaDozvola", PlayerInfo[playerid][pBoatLic]);
    	dini_IntSet(file, "RibolovnaDozvola", PlayerInfo[playerid][pFishLic]);
    	dini_IntSet(file, "DozvolaZaOruzije", PlayerInfo[playerid][pGunLic]);
    	dini_IntSet(file, "Podrjeklo", PlayerInfo[playerid][pOrigin]);
    	dini_IntSet(file, "Totorial", PlayerInfo[playerid][pTut]);
    	dini_IntSet(file, "Imunitet", PlayerInfo[playerid][pImunitet]);
    	dini_IntSet(file, "ZavrsenaSkola", PlayerInfo[playerid][pZavrsenaSkola]);
    }
    gPlayerLogged[playerid] = 0;

Neke slike/video za lakse dobivanje pomoci(neobavezno):/



slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku

Možeš ovako:

public OnPlayerDisconnect(playerid)
{
	new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);

        dini_IntSet(file, "Level", PlayerInfo[playerid][pLevel]);
        dini_IntSet(file, "Novac", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdmin]);
        dini_IntSet(file, "GameMaster",PlayerInfo[playerid][pGameMaster]);
        dini_IntSet(file, "TestGameMaster",PlayerInfo[playerid][pTestGameMaster]);
        dini_IntSet(file, "Racun",PlayerInfo[playerid][pAccount]);
        dini_IntSet(file, "Donator",PlayerInfo[playerid][pDonateRank]);
        dini_IntSet(file, "UpgradeBodovi",PlayerInfo[playerid][gPupgrade]);
        dini_IntSet(file, "VrijemeSpajanja",PlayerInfo[playerid][pConnectTime]);
        dini_IntSet(file, "Registracija",PlayerInfo[playerid][pReg]);
        dini_IntSet(file, "Spol",PlayerInfo[playerid][pSex]);
        dini_IntSet(file, "Godine",PlayerInfo[playerid][pAge]);
        dini_IntSet(file, "CK",PlayerInfo[playerid][pCK]);
        dini_IntSet(file, "Bodovi",PlayerInfo[playerid][pRespecti]);
        dini_IntSet(file, "Ubojstva",PlayerInfo[playerid][pKills]);
        dini_IntSet(file, "Smrti",PlayerInfo[playerid][pDeaths]);
        dini_IntSet(file, "Uhicivan",PlayerInfo[playerid][pArrested]);
        dini_IntSet(file, "WantedUbojstva",PlayerInfo[playerid][pWantedDeaths]);
        dini_IntSet(file, "Imenik",PlayerInfo[playerid][pPhoneBook]);
        dini_IntSet(file, "LotoBroj",PlayerInfo[playerid][pLottoNr]);
        dini_IntSet(file, "Posao",PlayerInfo[playerid][pJob]);
        dini_IntSet(file, "PayCheck",PlayerInfo[playerid][pPayCheck]);
        dini_IntSet(file, "HeadValue",PlayerInfo[playerid][pHeadValue]);
        dini_IntSet(file, "Zatvorenik",PlayerInfo[playerid][pJailed]);
        dini_IntSet(file, "VrijemeZatvora",PlayerInfo[playerid][pJailTime]);
        dini_IntSet(file, "Materijali",PlayerInfo[playerid][pMats]);
        dini_IntSet(file, "Droga",PlayerInfo[playerid][pDrugs]);
        dini_IntSet(file, "Lider",PlayerInfo[playerid][pLeader]);
        dini_IntSet(file, "Clan",PlayerInfo[playerid][pMember]);
        dini_IntSet(file, "FMember",PlayerInfo[playerid][pFMember]);
        dini_IntSet(file, "Rank",PlayerInfo[playerid][pRank]);
        dini_IntSet(file, "Char",PlayerInfo[playerid][pChar]);
        dini_IntSet(file, "Ugovor",PlayerInfo[playerid][pContractTime]);
        dini_IntSet(file, "DetektivSkill",PlayerInfo[playerid][pDetSkill]);
        dini_IntSet(file, "SEXSkill",PlayerInfo[playerid][pSexSkill]);
        dini_IntSet(file, "BoxSkill",PlayerInfo[playerid][pBoxSkill]);
        dini_IntSet(file, "OdvjetnikSkill",PlayerInfo[playerid][pLawSkill]);
        dini_IntSet(file, "MehanicarSkill",PlayerInfo[playerid][pMechSkill]);
        dini_IntSet(file, "KradljivacSkill",PlayerInfo[playerid][pJackSkill]);
        dini_IntSet(file, "CarSkill",PlayerInfo[playerid][pCarSkill]);
        dini_IntSet(file, "NovinarSkill",PlayerInfo[playerid][pNewsSkill]);
        dini_IntSet(file, "DilerDrogeSkill",PlayerInfo[playerid][pDrugsSkill]);
        dini_IntSet(file, "KuharSkill",PlayerInfo[playerid][pCookSkill]);
        dini_IntSet(file, "RibarSkill",PlayerInfo[playerid][pFishSkill]);
        dini_IntSet(file, "Int",PlayerInfo[playerid][pInt]);
        dini_IntSet(file, "Local",PlayerInfo[playerid][pLocal]);
        dini_IntSet(file, "Team",PlayerInfo[playerid][pTeam]);
        dini_IntSet(file, "Model",PlayerInfo[playerid][pModel]);
        dini_IntSet(file, "BrojM",PlayerInfo[playerid][pPnumber]);
        dini_IntSet(file, "Kuca",PlayerInfo[playerid][pPhousekey]);
        dini_IntSet(file, "Bizz",PlayerInfo[playerid][pPbiskey]);
       	dini_IntSet(file, "Vozacka", PlayerInfo[playerid][pCarLic]);
	    dini_IntSet(file, "PilotskaDozvola", PlayerInfo[playerid][pFlyLic]);
    	dini_IntSet(file, "BrodskaDozvola", PlayerInfo[playerid][pBoatLic]);
    	dini_IntSet(file, "RibolovnaDozvola", PlayerInfo[playerid][pFishLic]);
    	dini_IntSet(file, "DozvolaZaOruzije", PlayerInfo[playerid][pGunLic]);
    	dini_IntSet(file, "Podrjeklo", PlayerInfo[playerid][pOrigin]);
    	dini_IntSet(file, "Totorial", PlayerInfo[playerid][pTut]);
    	dini_IntSet(file, "Imunitet", PlayerInfo[playerid][pImunitet]);
    	dini_IntSet(file, "ZavrsenaSkola", PlayerInfo[playerid][pZavrsenaSkola]);
    }
    gPlayerLogged[playerid] = 0;

Last nick: Paradox

Oš da ti nešto kažem. BJEŽI od dini - a barem koristi djSon/yini/SQLlite/MySQL.... Ima toliko boljih sustava od dini - a da možeš birati
Kristijan Stipić

Citat: [H]265 poslato Jun 23, 2011, 23:34:44 POSLE PODNE
Oš da ti nešto kažem. BJEŽI od dini - a barem koristi djSon/yini/SQLlite/MySQL.... Ima toliko boljih sustava od dini - a da možeš birati

imas li neki tut ?
za najblji sustav po tvom izboru ako ima tut.
ako nema unda daj neki po tvom izboru daje dobar ;)


slika by NaNx


www.balkan-city.info
vidi vise i osjeti razliku