SSCANF Loading hudge data +1 Rep
#1

I'm wondering if it's possible to load hudge amount of data with SSCANF, because I know it's very fast and you know...

Let's say I want to load this with sscanf (from VX-RP Script, example only...):

Код:
enum playervEnum {
	Float: pHealth,
	Float: pArmour,
	Float: pPos[3],
	pPassword[129],
	pStatus,
	pAge,
	pMoney,
	pAdminLevel,
	pInterior,
	pLevel,
	pSkinSet,
	pCarID,
	pAnticheatExemption,
	pTabbed,
	pCarWeapons[5],
	pCarLicensePlate[32],
	pCarTrunk[2], // Cash & mats
	pPhoneCredit, // Will be done in seconds.
	pWalkieTalkie, // -1 = no walkie, 0 = switched off
	pSpectating,
	pSpecSession,
	pConnectedSeconds,
	pSpamCount,
	pFishing,
	pMuted,
	pVirtualWorld,
	pFish,
	pBanned,
	pTazer,
	pEvent,
	Float: pCarPos[4],
	pReport,
	pPrisonTime,
	pPrisonID, // 3 = IN CHARACTER JAIL! (future reference)
	pHackWarnTime,
	pHelperDuty,
	pReportMessage[64],
	pPlayingHours,
	pSkin,
	pJob,
	pRope,
	pAccent[40],
	pWarning1[32],
	pWarning2[32],
	pWarning3[32],
	pPhoneNumber,
	pSkinCount,
	pSeeOOC,
	pOOCMuted,
	pNewbieTimeout,
	pTutorial,
	pWeapons[13],
	pOutstandingWeaponRemovalSlot,
	pJetpack,
	pBankMoney,
	pHackWarnings,
	pEmail[255], // because this is the max length for a valid email.
	pSeconds,
	pFightStyle,
	pInternalID,
	pJobDelay,
	pGender,
	pNewbieEnabled,
	pFirstLogin,
	pAdminDuty,
	pHelper,
	pCarColour[2],
	pMatrunTime,
	pAdminName[MAX_PLAYER_NAME],
	pNormalName[MAX_PLAYER_NAME],
	pPhoneBook,
	pCheckpoint,
	pPMStatus,
	pOnRequest,
	Text3D: pAFKLabel,
	pGroup,
	pCarModel,
	pCarMods[13],
	pCarPaintjob,
	pCarLock,
	pVIP,
	pGroupRank,
	pDropCarTimeout,
	pMaterials,
	pJobSkill[2],
	pHospitalized,
	pFreezeTime, // Seconds. Set it to -1 if you want to permafreeze.
	pFreezeType, // 0 = not frozen (obviously), 1 = tazed, 2 = cuffed, 3 = admin frozen, 4 = tied
	pDrag,
	pAnimation,
	pPhoneStatus, // togged on/off
	pPhoneCall,
	pConnectionIP[32],
	pSeeWhisper,
	pCrimes,
	pArrests,
    pWarrants,
	pBackup,
}
This is a lot of variables I'm wondering how I can load it with sscanf without have a hudge amount of string length like str[1024];

I'm willing to give reputation.
Reply


Messages In This Thread
SSCANF Loading hudge data +1 Rep - by Ubuntu - 14.04.2012, 14:14
Re: SSCANF Loading hudge data +1 Rep - by Ubuntu - 14.04.2012, 14:28
Re: SSCANF Loading hudge data +1 Rep - by iggy1 - 14.04.2012, 14:29
Re: SSCANF Loading hudge data +1 Rep - by Joe Staff - 14.04.2012, 14:31
Re: SSCANF Loading hudge data +1 Rep - by Ubuntu - 14.04.2012, 14:32
Re: SSCANF Loading hudge data +1 Rep - by iggy1 - 14.04.2012, 14:33
Re: SSCANF Loading hudge data +1 Rep - by Ubuntu - 14.04.2012, 14:35
Re: SSCANF Loading hudge data +1 Rep - by iggy1 - 14.04.2012, 14:36
Re: SSCANF Loading hudge data +1 Rep - by Ubuntu - 14.04.2012, 14:38
Re: SSCANF Loading hudge data +1 Rep - by iggy1 - 14.04.2012, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)