14.04.2012, 14:14
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...):
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.
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, }
I'm willing to give reputation.