Saving System
#7

I do not understand

Quote:

About your DIALOG_REGISTER
Basically what you do is:
Write A in the file with value : 0
Write B in the file with value : 2

Then you call in the saving function that saves the player data. That function does this:
Write A in the file with value : [whatever value the variable has at that very moment]
Write B in the file with value : [whatever value the variable has at that very moment]

Код:
forward LoadUser_data(playerid, name[], value[]);
public LoadUser_data(playerid, name[], value[])
{
	INI_Int("Password", PlayerInfo[playerid][pPass]);
	INI_Int("Cash",PlayerInfo[playerid][pCash]);
	INI_Float("PosX", PlayerInfo[playerid][pX]);
    INI_Float("PosY", PlayerInfo[playerid][pY]);
    INI_Float("PosZ", PlayerInfo[playerid][pZ]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Helper",PlayerInfo[playerid][pHelper]);
    INI_Int("Prisoned",PlayerInfo[playerid][pPrisonReason]);
    INI_Int("Wanted",PlayerInfo[playerid][pWantedLevel]);
    INI_Int("Arrests",PlayerInfo[playerid][pArrests]);
    INI_Int("Crimes",PlayerInfo[playerid][pCrimes]);
    INI_Int("Jailed",PlayerInfo[playerid][pJailed]);
    INI_Int("Level",PlayerInfo[playerid][pLevel]);
    INI_Int("Warnings",PlayerInfo[playerid][pWarns]);
    INI_Int("CSR",PlayerInfo[playerid][pShopTech]);
	INI_Int("Order",PlayerInfo[playerid][pOrder]);
	INI_Int("Character",PlayerInfo[playerid][pChar]);
	INI_Int("Interior",PlayerInfo[playerid][pInt]);
	INI_Int("VirtualWorld",PlayerInfo[playerid][pVW]);
	INI_Int("Pot",PlayerInfo[playerid][pPot]);
	INI_Int("Heroin",PlayerInfo[playerid][pHeroin]);
	INI_Int("Meth",PlayerInfo[playerid][pMeth]);
	INI_Int("GiftTime",PlayerInfo[playerid][pGiftTime]);
	INI_Int("PlayingHours",PlayerInfo[playerid][pTime]);
	INI_Int("Exp",PlayerInfo[playerid][pExp]);
	INI_Int("Faction",PlayerInfo[playerid][pTeam]);
	INI_Int("Rank",PlayerInfo[playerid][pRank]);
	INI_Int("Leader",PlayerInfo[playerid][pLeader]);
	INI_Int("Member",PlayerInfo[playerid][pMember]);
	INI_Int("Accept",PlayerInfo[playerid][pAcceptID]);
	INI_Int("FMember",PlayerInfo[playerid][pFMember]);
	INI_Int("Division",PlayerInfo[playerid][pDivision]);
	INI_Int("Restricted",PlayerInfo[playerid][pWRestricted]);
	INI_Int("AGuns",PlayerInfo[playerid][pAGuns]);
	INI_Int("Guns",PlayerInfo[playerid][pGuns]);
	INI_Int("GunAmmo",PlayerInfo[playerid][pGunAmmo]);
	INI_Int("AMSSent",PlayerInfo[playerid][pAMSSent]);
	INI_Int("ReportsAccepted",PlayerInfo[playerid][pReportsAccepted]);
	INI_Int("BadgeNumber",PlayerInfo[playerid][pBadgeNum]);
    return 1;
}
Reply


Messages In This Thread
Saving System - by MrCallum - 31.12.2014, 20:20
Re: Saving System - by CalvinC - 31.12.2014, 20:32
Re: Saving System - by MrCallum - 31.12.2014, 21:05
Re: Saving System - by AndySedeyn - 31.12.2014, 21:08
Re: Saving System - by MrCallum - 31.12.2014, 21:12
Re: Saving System - by AndySedeyn - 31.12.2014, 21:21
Re: Saving System - by MrCallum - 31.12.2014, 21:23
Re: Saving System - by AndySedeyn - 31.12.2014, 21:27
Re: Saving System - by MrCallum - 31.12.2014, 21:29
Re: Saving System - by AndySedeyn - 31.12.2014, 21:31

Forum Jump:


Users browsing this thread: 3 Guest(s)