YSI/y_ini Loading And Saving Playerfiles
#1

I Was Using Dini And Using The SaveChar And LoadChar "Stock" And Editing It.. But My Player Never Saved. Im Not to Sure How to Use YSI Just Yet.. I know the basics.. Can Someone Help me? These Are My pInfo Enums
Код:
        pOwner,
	pLevel,
	pEntered,
	pArmorUpgrade,
	pUpgradePoints,
	pMinutes,
	pTMinutes,
	pHours,
	pGender,
	pAge,
	pMoney,
	pBank,
	pModel,
	pModel1,
	pModel2,
	pModel3,
	pAdmin,
	pMapper,
	pBanned,
	Float:pX,
	Float:pY,
	Float:pZ,
	pInt,
	pVW,
	pVehVW,
	pWalkStyle,
	pNeon,
	pVNeon,
	pTGun[2],
	pTGunAmmo[2],
	pvTGun[2],
	pvTGunAmmo[2],
	pvvTGun[2],
	pvvTGunAmmo[2],
	pvvvTGun[2],
	pvvvTGunAmmo[2],
	pFac,
	pFacRank,
	pFacLeader,
	pWeapon[13],
	pWeaponAmmo[13],
	pHospital,
	pFacDuty,
	pFacDiv,
	pFacDivLeader,
	pBiz,
	pVBiz,
	pHouse,
	pVHouse,
	pGarage,
	pVGarage,
	pJob,
	pJobSkill[MAX_JOBS],
	pJackSkill,
	pTPackages,
	pMPackages,
	pDPackages,
	pMaterials,
	pMMaterials,
	pMMPackages,
	pHMaterials,
	pHPackages,
	pWeed,
	pcocaine,
	pTWeed,
	pTcocaine,
	pvTWeed,
	pvTcocaine,
	pvvTWeed,
	pvvTcocaine,
	pvvvTWeed,
	pvvvTcocaine,
	pHasCellphone,
	pCellphone,
	pPhonebook,
	pDice,
	pPortableRadio,
	pMask,
	pGift,
	pCigar,
	pSprunk,
	pSpray,
	pRope,
	pBlindfold,
	pWT,
	pWTC,
	pGas,
	pRadio,
	pCuffed,
	pTips,
	Float:pHealth,
	Float:pArmor,
	pInternet,
	pPrison,
	pPrisonTime,
	pPrisonReason[64],
	pPrisonBy[32],
	pWanted,
	pWanted1[64],
	pWanted2[64],
	pWanted3[64],
	pWanted4[64],
	pWanted5[64],
	pWanted6[64],
	pCrimes,
	pArrested,
	pContract,
	pContractBy[32],
	pTutorial,
	pWarns,
	pWarn1[64],
	pWarn2[64],
	pWarn3[64],
	pFlag[65],
	pNMute,
	pRMute,
	pADMute,
	pSpawnFreeze,
	pFam,
	pFamRank,
	pCSuccess,
	pCFail,
	pDeath,
	pKill,
	pHelper,
	pExp,
	pVeh,
	pBugged,
	pNumber,
	vModel,
	Float:vX,
	Float:vY,
	Float:vZ,
	Float:vA,
	vC1,
	vC2,
	vPJ,
	pVehMod[14],
	vLocked,
	pGangMod,
	pFacMod,
	pBanAppealer,
	pCarLic,
	pFlyLic,
	pJetpack,
	pWepLic,
	pAccent[16],
	pDay,
	// VIP
	pVIP,
	pVIPDay,
	pVIPMonth,
	pVIPHour,
	pVIPTemp,
	// VIP Job
	pVIPJob,
	// VIP Car
	pVVeh,
	vVModel,
	Float:vVX,
	Float:vVY,
	Float:vVZ,
	Float:vVA,
	vVC1,
	vVC2,
	vVPJ,
	pVVehMod[14],
	vVLocked,
	pVVVeh,
	vVVModel,
	Float:vVVX,
	Float:vVVY,
	Float:vVVZ,
	Float:vVVA,
	vVVC1,
	vVVC2,
	vVVPJ,
	pVVVehMod[14],
	vVVLocked,
	pVVVVeh,
	vVVVModel,
	Float:vVVVX,
	Float:vVVVY,
	Float:vVVVZ,
	Float:vVVVA,
	vVVVC1,
	vVVVC2,
	vVVVPJ,
	pVVVVehMod[14],
	vVVVLocked,
	pVIPBuddy,
	pDeliverTruck,
	pNew,
	pRefPoints,
	pTester,
	pFightStyle,
	pScope,
	pCookies,
	pOldskool,
	// Toys
	pToyModel[10],
	Float:pToyX[10],
	Float:pToyY[10],
	Float:pToyZ[10],
	Float:pToyRX[10],
	Float:pToyRY[10],
	Float:pToyRZ[10],
 	Float:pToySX[10],
        Float:pToySY[10],
        Float:pToySZ[10],
        pReward,
        pFish[5],
        pLoyal,
        pLoyalTag,
        pLPoints,
        pStoned,
        pGate[3],
        pSafeAdmin
I Removed The IP from the Enum.. Cause its Not needed really ingame.. so this is where i need help.. making the save and load
Reply
#2

Showing us the enum is quite useless. Show us the functions(stocks).
Reply
#3

Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Showing us the enum is quite useless. Show us the functions(stocks).
I Had The DINI Functions But People Say DINI isnt Good.. So I Want to Make It With YSI.. This is The DINI Functions
http://pastebin.com/YW9G17b9
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)