warning 202: number of arguments does not match definition
#1

C:\Users\User\Documents\ValoareCuK\gamemodes\rworl d.pwn(21330) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\ValoareCuK\gamemodes\rworl d.pwn(21331) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\ValoareCuK\gamemodes\rworl d.pwn(21332) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\ValoareCuK\gamemodes\rworl d.pwn(21333) : warning 202: number of arguments does not match definition

P_DATA[playerid][C_UTS] = cache_get_field_content( 0, "C_UTS");
P_DATA[playerid][pClan] = cache_get_field_content( 0, "Clan");
P_DATA[playerid][pClanTag] = cache_get_field_content(0, "ClanTagPos");
P_DATA[playerid][pClanRank] = cache_get_field_content(0, "ClanRank");


Код:
enum pInfo
{
	pRoadblock,pSpikestrip,pRadar,pTiredFromGym,pPunish,pTiredFromGrabkick,pTiredFromKarate,pKey[128],pLevel,pAdmin,pDonateRank,
	gPupgrade,pConnectTime,pReg,pSex,pAge,pOrigin[30],pGymEquiped,pKarateEquiped,pBoxFightStyle,pCK,pMuted,pExp,pCash,
	pAccount,pCrimes,pKills,pDeaths,pArrested,pWantedDeaths,pPhoneBook,pLottoNr,pFishes,pBiggestFish,pJob,pPayCheck,
	pHeadValue,pJailed,pJailTime,pMats,pDrugs,pTow,pLeader,pMember,pFMember,pRank,pChar,pContractTime,pDetSkill,pSexSkill,
	pBoxSkill,pLawSkill,pBoxingSkill,pGrabkickSkill,pKarateSkill,pMechSkill,pJackSkill,pCarSkill,
	pNewsSkill,pDrugsSkill,pCookSkill,pFishSkill,pDMVCar,Float:pHealth,Float:pSHealth,pInt,pLocal,pTeam,pModel,pPnumber,
	pPhousekey,pPbiskey,Float:pPos_x,Float:pPos_y,Float:pPos_z,pCarLic,pFlyLic,pBoatLic,pFishLic,pGunLic,pMatsLic,pGun1,pGun2,pGun3,
	pGun4,pAmmo1,pAmmo2,pAmmo3,pAmmo4,pCarTime,pPayDay,pPayDayHad,pCDPlayer,pWins,pLoses,pAlcoholPerk,pDrugPerk,pMiserPerk,
	pPainPerk,pTraderPerk,pTut,pMissionNr,pWarns,pAdjustable,pFuel,pMarried,pMarriedTo[128],LastLogin[128],pRobbingBank,
	pJob1,pAchievement1,pAchievement2,pAchievement3,pAchievement4,pAchievement5,pAchievement6,pAchievement7,pAchievement8,
	pAchievement9,pTrial,pNewbTimer,pGPPoints,pRPBoost,pIP[256],pAchievement10,pAchievement11,pAchievement12,
	pAchievement13,pAchievement14,pAchievement15,pAchievement16,pAchievement17,pAchievement18,pAchievement19,pAchievement20,
	pAchievement21,pAchievement22,pAchievement23,pAchievement24,pAchievement25,pAchievement26,pAchievement27,pAchievement28,
	pAchievement29,pAchievement30,pAchievement31,pAchievement32,pAchievement33,pAchievement34,pAchievement35,pAchievement36,
	pAchievement37,pFwarn,pAchievement38,pAchievement39,pAchievement40,pStyle,pSQLID,pCombina,pSText[100],pGPS,pEmail[50],pCadou,pLiderW,pRMuted,
	bool: pBonusCar, pReferal, pSpawnAt, pClan, pClanRank, pClanTag, C_UTS
};

new P_DATA[MAX_PLAYERS][pInfo];
Reply
#2

You need to pass the destination as argument, the function itself does not return strings.

But from what I see, those are meant to be integers so cache_get_field_content_int should be used:

pawn Код:
P_DATA[playerid][C_UTS] = cache_get_field_content_int(0, "C_UTS");
Reply
#3

cache_get_field_content is used to retrieve string. The way pawn works we can not assign result directly to array/string so we need to pass it inside function and return result by reference (thats what plugin does).

So basically you use cache_get_field_content as: (I take it that C_UTS is a string)
pawn Код:
cache_get_field_content( 0, "C_UTS", P_DATA[playerid][C_UTS]);
While for integers and floats you do it normal (your) way, like:
pawn Код:
P_DATA[playerid][pClanTag] = cache_get_field_content_int(0, "ClanTagPos");
P_DATA[playerid][pClanRank] = cache_get_field_content_float(0, "ClanRank");
Reply
#4

C:\Users\User\Documents\ValoareCuK\gamemodes\rworl d.pwn(21307) : warning 213: tag mismatch

P_DATA[playerid][pClanRank] = cache_get_field_content_float(0, "ClanRank");
Reply
#5

Use cache_get_field_content_int function for all four of them, they are integers in your enumerator.
Reply
#6

Try this?

PHP код:
cache_get_field_content_float(0"ClanRank"P_DATA[playerid][pClanRank]); 
Reply
#7

Quote:
Originally Posted by Jimmi
Посмотреть сообщение
Код:
pAchievement1,pAchievement2,pAchievement3,pAchievement4,pAchievement5,pAchievement6,pAchievement7,pAchievement8,
	pAchievement9,pTrial,pNewbTimer,pGPPoints,pRPBoost,pIP[256],pAchievement10,pAchievement11,pAchievement12,
	pAchievement13,pAchievement14,pAchievement15,pAchievement16,pAchievement17,pAchievement18,pAchievement19,pAchievement20,
	pAchievement21,pAchievement22,pAchievement23,pAchievement24,pAchievement25,pAchievement26,pAchievement27,pAchievement28,
	pAchievement29,pAchievement30,pAchievement31,pAchievement32,pAchievement33,pAchievement34,pAchievement35,pAchievement36,
	pAchievement37,pFwarn,pAchievement38,pAchievement39,pAchievement40
Oh my god, you can't be serious. Tried arrays yet?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)