SA-MP Forums Archive
error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 2) (/showthread.php?tid=461019)



error 035: argument type mismatch (argument 2) - viveka27 - 31.08.2013

Load Data Code:
Код:
public OnAccountLoad(playerid)
{

				PlayerInfo[playerid][pBankPIN] = cache_get_row_int(0,4,handle), //Line 40626
				PlayerInfo[playerid][pBankMoney]      = cache_get_row_int(0, 5, handle),
				PlayerInfo[playerid][pBankAccount]    = cache_get_row_int(0, 6, handle),
				PlayerInfo[playerid][pLotteryTicket]  = cache_get_row_int(0, 7, handle),
				PlayerInfo[playerid][pWinner]         = cache_get_row_int(0, 8, handle),
				PlayerInfo[playerid][pBriefcase]      = cache_get_row_int(0, 9, handle),
				gatekey[playerid]   				  = cache_get_row_int(0, 10, handle),
				gatekey2[playerid]           		  = cache_get_row_int(0, 11, handle),
				gatekey3[playerid]         			  = cache_get_row_int(0, 12, handle),
				gatekey4[playerid]    				  = cache_get_row_int(0, 13, handle),
				gatekey5[playerid]        			  = cache_get_row_int(0, 14, handle),
				gatekey6[playerid]         			  = cache_get_row_int(0, 15, handle),
				gatekey7[playerid]        		 	  = cache_get_row_int(0, 16, handle),
				gatekey8[playerid]       			  = cache_get_row_int(0, 17, handle),
				gatekey9[playerid]   				  = cache_get_row_int(0, 18, handle),
				gatekey10[playerid]           		  = cache_get_row_int(0, 19, handle),
    			GarageKey[playerid]       			  = cache_get_row_int(0, 20, handle),
				HouseKey[playerid]     				  = cache_get_row_int(0, 21, handle),
				PlayerInfo[playerid][pGiftBoxes]      = cache_get_row_int(0, 22, handle),
				gifttimer[playerid]					  = cache_get_row_int(0, 23, handle),
				PlayerInfo[playerid][pSecurityClearance] = cache_get_row_int(0, 24, handle),
				PlayerInfo[playerid][pRedLaser]       = cache_get_row_int(0, 25, handle),
				PlayerInfo[playerid][pGreenLaser]     = cache_get_row_int(0, 26, handle),
				PlayerInfo[playerid][pOrangeLaser]    = cache_get_row_int(0, 27, handle),
				PlayerInfo[playerid][pPinkLaser]      = cache_get_row_int(0, 28, handle),
				PlayerInfo[playerid][pYellowLaser]    = cache_get_row_int(0, 29, handle),
				PlayerInfo[playerid][pBlueLaser]      = cache_get_row_int(0, 30, handle),
				pistol_skill[playerid]        		  = cache_get_row_int(0, 31, handle),
				sdpistol_skill[playerid]       	      = cache_get_row_int(0, 32, handle),
				deagle_skill[playerid]   			  = cache_get_row_int(0, 33, handle),
				shotgun_skill[playerid]           	  = cache_get_row_int(0, 34, handle),
                sawnoff_skill[playerid]       	      = cache_get_row_int(0, 35, handle),
				spas12_skill[playerid]     		      = cache_get_row_int(0, 36, handle),
				micro_skill[playerid]      			  = cache_get_row_int(0, 37, handle),
				mp5_skill[playerid]       			  = cache_get_row_int(0, 38, handle),
				ak47_skill[playerid]       			  = cache_get_row_int(0, 39, handle),
				m4_skill[playerid]   				  = cache_get_row_int(0, 40, handle),
				PlayerInfo[playerid][pDev]            = cache_get_row_int(0, 41, handle),
    			PlayerInfo[playerid][pLevel]       	  = cache_get_row_int(0, 42, handle),
				PlayerInfo[playerid][pAdmin]     	  = cache_get_row_int(0, 43, handle),
				PlayerInfo[playerid][pSecKey]    	  = cache_get_row_int(0, 37, handle),
				PlayerInfo[playerid][pStealthed]      = cache_get_row_int(0, 38, handle),
				PlayerInfo[playerid][pPermBand]       = cache_get_row_int(0, 39, handle),
				PlayerInfo[playerid][pBanReason]   	  = cache_get_field_content(0, 40, handle),
				PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle),
    			PlayerInfo[playerid][pPrisonedBy]     = cache_get_field_content(0, 42, handle),
				PlayerInfo[playerid][pAdminJailed]	  = cache_get_row_int(0, 43, handle),
				PlayerInfo[playerid][pWarns]            = cache_get_row_int(0, 44, handle),
    			PlayerInfo[playerid][pDisabled]       	  = cache_get_row_int(0, 45, handle),
				PlayerInfo[playerid][pDonateRank]     	  = cache_get_row_int(0, 46, handle),
				PlayerInfo[playerid][pJoinDate][1]	  = cache_get_row_int(0, 47, handle),
				PlayerInfo[playerid][pExpireDate][1]      = cache_get_row_int(0, 48, handle),
				PlayerInfo[playerid][pJoinDate][2]       = cache_get_row_int(0, 49, handle),
    			PlayerInfo[playerid][pExpireDate][2] = cache_get_row_int(0, 50, handle),
				PlayerInfo[playerid][pBanAppealer]      = cache_get_row_int(0, 51, handle),
				PlayerInfo[playerid][pGangMod]            = cache_get_row_int(0, 52, handle),
                PlayerInfo[playerid][pFactionMod]       	  = cache_get_row_int(0, 53, handle),
				PlayerInfo[playerid][pGangDirector]     	  = cache_get_row_int(0, 54, handle); // Line 40683
	return 1;
}
Player Data Enum:
Код:
enum pInfo
{
	pKey,
 	pLevel,
 	pAdmin,
	pDev,
    CarSelect,
	Text:TutorialText[2],
	pSecKey,
	pBanned,
	pBanReason[128],
	pPermBand,
	pStealthed,
	pPrisonReason[128],
	pPrisonedBy[32],
 	pAdminJailed,
	pWarns,
	pDisabled,
	pDonateRank,
	pJoinDate[4],
	pExpireDate[4],
	pBanAppealer,
	pGangMod,
	pFactionMod,
	pGangDirector,
	gPupgrade,
	pConnectTime,
	pReg,
	pSex,
	pAge,
	pOrigin,
	pMuted,
	pExp,
	pCash,
	pAccount,
	pCrimes,
	pCrime[6],
	pCrimeReason0[128],
	pCrimeReason1[128],
	pCrimeReason2[128],
	pCrimeReason3[128],
	pCrimeReason4[128],
	pCrimeReason5[128],
	pCrimeReporter0[MAX_PLAYER_NAME],
	pCrimeReporter1[MAX_PLAYER_NAME],
	pCrimeReporter2[MAX_PLAYER_NAME],
	pCrimeReporter3[MAX_PLAYER_NAME],
	pCrimeReporter4[MAX_PLAYER_NAME],
	pCrimeReporter5[MAX_PLAYER_NAME],
	pCrimeDate0[32],
	pCrimeDate1[32],
	pCrimeDate2[32],
	pCrimeDate3[32],
	pCrimeDate4[32],
	pCrimeDate5[32],
	pKills,
	pDeaths,
	pCHits,
	pFHits,
	pArrested,
	pPhoneBook,
	pLottoNr,
	pFishes,
	pBiggestFish,
	pJob,
	pPayCheck,
	pHeadValue,
	pJailed,
	pJailTime,
	pProducts,
	pMats,
	pWeed,
	pHeroin,
	pMeth,
	pCocaine,
	pSeeds,
	pLeader,
	pMember,
	pFMember,
	pRank,
	pDetSkill,
	pSexSkill,
	pBoxSkill,
	pLawSkill,
	pMechSkill,
	pJackSkill,
	pCarSkill,
	pDrugsSkill,
	pArmsSkill,
	pSmugglerSkill,
	pMailSkill,
	pHouseSkill,
	pThieveSkill,
	pFishSkill,
	pFightingStyle,
	Float:pHealth,
	Float:pArmor,
	pSHealth,
	pInt,
	pLocal,
	pVirtualWorld,
	pModel,
	pClothes,
	pPhone,
	pSetVehSpawn,
	pCarLic,
	pFlyLic,
	pFlyLic2,
	pBoatLic,
	pFishLic,
	pGunLic,
	pGun0,
	pGun1,
	pGun2,
	pGun3,
	pGun4,
	pGun5,
	pGun6,
	pGun7,
	pGun8,
	pGun9,
	pGun10,
	pGun11,
	pGun12,
 	pCarTime,
	pDrugsTime,
	pLawyerTime,
	pLawyerFreeTime,
	pMechTime,
	pSexTime,
	pPlantTime,
	pRepairTime,
	pRobTime,
	pPayDay,
	pPayDayHad,
	pCDPlayer,
	pDice,
	pSpraycan,
	pScrew,
	pRope,
 	pCigars,
	pSprunk,
	pCookies,
	pRewardTokens,
	pHoursPlayed,
	pWT,
	pWTc,
    bool:StartedBS1,
	bool:StartedBS2,
	bool:StartedCS1,
	bool:StartedCS2,
	bool:StartedPK1,
	bool:StartedPK2,
	bool:StartedPK3,
	bool:StartedPK4,
	pBombs,
	pScope,
	pMask,
    Text3D:pMaskLabel,
    pMaskName[MAX_PLAYER_NAME],
	pWins,
	pLoses,
	pTut,
	pOnDuty,
	pHospital,
	pAdjustable,
	pMarried,
	pMarriedTo[128],
	pContractBy[128],
	pIP[16],
	pWantedLevel,
	pNewbieMuted,
	pDMuted,
	pAdMuted,
	pHelpmeMuted,
	pReportMuted,
	pOOCMuted,
	pAMuted,
	pBReportMuted,
	pSafeSpawn,
	Float:pSPos_x,
	Float:pSPos_y,
	Float:pSPos_z,
	Float:pSPos_r,
	pHelper,
	pFamed,
	pGlasses,
	pBandana,
	pHelmet,
	pRequestingBackup,
	pVipColor,
	pBlindfolds,
	pSpeakPhone,
	pCheck,
	pDeck,
	pRedLaser,
	pGreenLaser,
	pOrangeLaser,
	pYellowLaser,
	pBlueLaser,
	pPinkLaser,
	pGiftBoxes,
	//Counter,
    pBriefcase,
	pCookedSteak,
	pCookedBurger,
	pCookedPizza,
	pCookedFish,
	pCookedSoup,
	pSecurityClearance,
	pLotteryTicket,
	pWinner,
	pBankAccount,
	pBankPIN,
	pBankMoney,
	pBills,
	pNameChange,
	pNewName[24],
	pWood,
	pDate[7],
	pDrugDemand,
	pDivision,
	pRegisterDate[7],
	pWeaponRestricted,
	pMoveTimer,
	pLockCar,
    pVehicleKeys,
	pVehicleKeysFrom,
	pRentVehicle,
    Fish1,
	Fish2,
	Fish3,
	Fish4,
	FishingRod,
	FishingBait,
	pAdminName[MAX_PLAYER_NAME],
	pNormalName[MAX_PLAYER_NAME],
};
new PlayerInfo[MAX_PLAYERS][pInfo];
new handle;
new PlayerCouponVehicle[MAX_PLAYERS][MAX_COUPONS];
new PlayerCouponPercentage[MAX_PLAYERS][MAX_COUPONS];
I Always Get This Error
(40626 -- 40669) : error 035: argument type mismatch (argument 2)

After Do This
Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Change
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle),
to
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
Change all of them
I am get new problem
ERROR:
(40709) : error 035: argument type mismatch (argument 2)
(40710) : error 035: argument type mismatch (argument 2)
(40711) : error 035: argument type mismatch (argument 2)


Код:
PlayerInfo[playerid][pBankPIN] = cache_get_row_int(0,4,handle);
PlayerInfo[playerid][pBankMoney]      = cache_get_row_int(0, 5, handle);
PlayerInfo[playerid][pBankAccount]    = cache_get_row_int(0, 6, handle);
PlayerInfo[playerid][pLotteryTicket]  = cache_get_row_int(0, 7, handle);
PlayerInfo[playerid][pWinner]         = cache_get_row_int(0, 8, handle);
PlayerInfo[playerid][pBriefcase]      = cache_get_row_int(0, 9, handle);
gatekey[playerid]   				  = cache_get_row_int(0, 10, handle);
gatekey2[playerid]           		  = cache_get_row_int(0, 11, handle);
gatekey3[playerid]         			  = cache_get_row_int(0, 12, handle);
gatekey4[playerid]    				  = cache_get_row_int(0, 13, handle);
gatekey5[playerid]        			  = cache_get_row_int(0, 14, handle);
gatekey6[playerid]         			  = cache_get_row_int(0, 15, handle);
gatekey7[playerid]        		 	  = cache_get_row_int(0, 16, handle);
gatekey8[playerid]       			  = cache_get_row_int(0, 17, handle);
gatekey9[playerid]   				  = cache_get_row_int(0, 18, handle);
gatekey10[playerid]           		  = cache_get_row_int(0, 19, handle);
GarageKey[playerid]       			  = cache_get_row_int(0, 20, handle);
HouseKey[playerid]     				  = cache_get_row_int(0, 21, handle);
PlayerInfo[playerid][pGiftBoxes]      = cache_get_row_int(0, 22, handle);
gifttimer[playerid]					  = cache_get_row_int(0, 23, handle);
PlayerInfo[playerid][pSecurityClearance] = cache_get_row_int(0, 24, handle);
PlayerInfo[playerid][pRedLaser]       = cache_get_row_int(0, 25, handle);
PlayerInfo[playerid][pGreenLaser]     = cache_get_row_int(0, 26, handle);
PlayerInfo[playerid][pOrangeLaser]    = cache_get_row_int(0, 27, handle);
PlayerInfo[playerid][pPinkLaser]      = cache_get_row_int(0, 28, handle);
PlayerInfo[playerid][pYellowLaser]    = cache_get_row_int(0, 29, handle);
PlayerInfo[playerid][pBlueLaser]      = cache_get_row_int(0, 30, handle);
pistol_skill[playerid]        		  = cache_get_row_int(0, 31, handle);
sdpistol_skill[playerid]       	      = cache_get_row_int(0, 32, handle);
deagle_skill[playerid]   			  = cache_get_row_int(0, 33, handle);
shotgun_skill[playerid]           	  = cache_get_row_int(0, 34, handle);
sawnoff_skill[playerid]       	      = cache_get_row_int(0, 35, handle);
spas12_skill[playerid]     		      = cache_get_row_int(0, 36, handle);
micro_skill[playerid]      			  = cache_get_row_int(0, 37, handle);
mp5_skill[playerid]       			  = cache_get_row_int(0, 38, handle);
ak47_skill[playerid]       			  = cache_get_row_int(0, 39, handle);
m4_skill[playerid]   				  = cache_get_row_int(0, 40, handle);
PlayerInfo[playerid][pDev]            = cache_get_row_int(0, 41, handle);
PlayerInfo[playerid][pLevel]       	  = cache_get_row_int(0, 42, handle);
PlayerInfo[playerid][pAdmin]     	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pSecKey]    	  = cache_get_row_int(0, 37, handle);
PlayerInfo[playerid][pStealthed]      = cache_get_row_int(0, 38, handle);
PlayerInfo[playerid][pPermBand]       = cache_get_row_int(0, 39, handle);
//Error PlayerInfo[playerid][pBanReason]   	  = cache_get_field_content(0, 40, handle);
//Error PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
//Error PlayerInfo[playerid][pPrisonedBy]     = cache_get_field_content(0, 42, handle);
PlayerInfo[playerid][pAdminJailed]	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pWarns]            = cache_get_row_int(0, 44, handle);
PlayerInfo[playerid][pDisabled]       	  = cache_get_row_int(0, 45, handle);
PlayerInfo[playerid][pDonateRank]     	  = cache_get_row_int(0, 46, handle);
PlayerInfo[playerid][pJoinDate][1]	  = cache_get_row_int(0, 47, handle);
PlayerInfo[playerid][pExpireDate][1]      = cache_get_row_int(0, 48, handle);
PlayerInfo[playerid][pJoinDate][2]       = cache_get_row_int(0, 49, handle);
PlayerInfo[playerid][pExpireDate][2] = cache_get_row_int(0, 50, handle);
PlayerInfo[playerid][pBanAppealer]      = cache_get_row_int(0, 51, handle);
PlayerInfo[playerid][pGangMod]            = cache_get_row_int(0, 52, handle);
PlayerInfo[playerid][pFactionMod]       	  = cache_get_row_int(0, 53, handle);
PlayerInfo[playerid][pGangDirector]     	  = cache_get_row_int(0, 54, handle);



Re: error 035: argument type mismatch (argument 2) - Skribblez - 31.08.2013

I'm guessing that you're missing " [ " or " ] " somewhere. Could you post lines 40626 to 40669?

Edit: Sorry, didn't notice the comments on the post. Finding the error makes me dizzy.


Re: error 035: argument type mismatch (argument 2) - Giroud12 - 31.08.2013

Change
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle),
to
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
Change all of them


Re: error 035: argument type mismatch (argument 2) - Skribblez - 31.08.2013

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Change
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle),
to
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
Change all of them
Oh... true.


Re: error 035: argument type mismatch (argument 2) - viveka27 - 31.08.2013

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Change
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle),
to
pawn Код:
PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
Change all of them
Thanks But I Still Confused.Why I can't use ',' and must use ';' for all? Why in other script i can use ','.Sorry For bad english


Re: error 035: argument type mismatch (argument 2) - Skribblez - 31.08.2013

I guess it's just how it works.


Re: error 035: argument type mismatch (argument 2) - viveka27 - 31.08.2013

ERROR:
(40709) : error 035: argument type mismatch (argument 2)
(40710) : error 035: argument type mismatch (argument 2)
(40711) : error 035: argument type mismatch (argument 2)


CODE:
Код:
PlayerInfo[playerid][pBankPIN] = cache_get_row_int(0,4,handle);
PlayerInfo[playerid][pBankMoney]      = cache_get_row_int(0, 5, handle);
PlayerInfo[playerid][pBankAccount]    = cache_get_row_int(0, 6, handle);
PlayerInfo[playerid][pLotteryTicket]  = cache_get_row_int(0, 7, handle);
PlayerInfo[playerid][pWinner]         = cache_get_row_int(0, 8, handle);
PlayerInfo[playerid][pBriefcase]      = cache_get_row_int(0, 9, handle);
gatekey[playerid]   				  = cache_get_row_int(0, 10, handle);
gatekey2[playerid]           		  = cache_get_row_int(0, 11, handle);
gatekey3[playerid]         			  = cache_get_row_int(0, 12, handle);
gatekey4[playerid]    				  = cache_get_row_int(0, 13, handle);
gatekey5[playerid]        			  = cache_get_row_int(0, 14, handle);
gatekey6[playerid]         			  = cache_get_row_int(0, 15, handle);
gatekey7[playerid]        		 	  = cache_get_row_int(0, 16, handle);
gatekey8[playerid]       			  = cache_get_row_int(0, 17, handle);
gatekey9[playerid]   				  = cache_get_row_int(0, 18, handle);
gatekey10[playerid]           		  = cache_get_row_int(0, 19, handle);
GarageKey[playerid]       			  = cache_get_row_int(0, 20, handle);
HouseKey[playerid]     				  = cache_get_row_int(0, 21, handle);
PlayerInfo[playerid][pGiftBoxes]      = cache_get_row_int(0, 22, handle);
gifttimer[playerid]					  = cache_get_row_int(0, 23, handle);
PlayerInfo[playerid][pSecurityClearance] = cache_get_row_int(0, 24, handle);
PlayerInfo[playerid][pRedLaser]       = cache_get_row_int(0, 25, handle);
PlayerInfo[playerid][pGreenLaser]     = cache_get_row_int(0, 26, handle);
PlayerInfo[playerid][pOrangeLaser]    = cache_get_row_int(0, 27, handle);
PlayerInfo[playerid][pPinkLaser]      = cache_get_row_int(0, 28, handle);
PlayerInfo[playerid][pYellowLaser]    = cache_get_row_int(0, 29, handle);
PlayerInfo[playerid][pBlueLaser]      = cache_get_row_int(0, 30, handle);
pistol_skill[playerid]        		  = cache_get_row_int(0, 31, handle);
sdpistol_skill[playerid]       	      = cache_get_row_int(0, 32, handle);
deagle_skill[playerid]   			  = cache_get_row_int(0, 33, handle);
shotgun_skill[playerid]           	  = cache_get_row_int(0, 34, handle);
sawnoff_skill[playerid]       	      = cache_get_row_int(0, 35, handle);
spas12_skill[playerid]     		      = cache_get_row_int(0, 36, handle);
micro_skill[playerid]      			  = cache_get_row_int(0, 37, handle);
mp5_skill[playerid]       			  = cache_get_row_int(0, 38, handle);
ak47_skill[playerid]       			  = cache_get_row_int(0, 39, handle);
m4_skill[playerid]   				  = cache_get_row_int(0, 40, handle);
PlayerInfo[playerid][pDev]            = cache_get_row_int(0, 41, handle);
PlayerInfo[playerid][pLevel]       	  = cache_get_row_int(0, 42, handle);
PlayerInfo[playerid][pAdmin]     	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pSecKey]    	  = cache_get_row_int(0, 37, handle);
PlayerInfo[playerid][pStealthed]      = cache_get_row_int(0, 38, handle);
PlayerInfo[playerid][pPermBand]       = cache_get_row_int(0, 39, handle);
//Error PlayerInfo[playerid][pBanReason]   	  = cache_get_field_content(0, 40, handle);
//Error PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
//Error PlayerInfo[playerid][pPrisonedBy]     = cache_get_field_content(0, 42, handle);
PlayerInfo[playerid][pAdminJailed]	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pWarns]            = cache_get_row_int(0, 44, handle);
PlayerInfo[playerid][pDisabled]       	  = cache_get_row_int(0, 45, handle);
PlayerInfo[playerid][pDonateRank]     	  = cache_get_row_int(0, 46, handle);
PlayerInfo[playerid][pJoinDate][1]	  = cache_get_row_int(0, 47, handle);
PlayerInfo[playerid][pExpireDate][1]      = cache_get_row_int(0, 48, handle);
PlayerInfo[playerid][pJoinDate][2]       = cache_get_row_int(0, 49, handle);
PlayerInfo[playerid][pExpireDate][2] = cache_get_row_int(0, 50, handle);
PlayerInfo[playerid][pBanAppealer]      = cache_get_row_int(0, 51, handle);
PlayerInfo[playerid][pGangMod]            = cache_get_row_int(0, 52, handle);
PlayerInfo[playerid][pFactionMod]       	  = cache_get_row_int(0, 53, handle);
PlayerInfo[playerid][pGangDirector]     	  = cache_get_row_int(0, 54, handle);
Get New Problem.How to fix it?


Re: error 035: argument type mismatch (argument 2) - RenovanZ - 01.09.2013

Quote:
Originally Posted by viveka27
Посмотреть сообщение
ERROR:
(40709) : error 035: argument type mismatch (argument 2)
(40710) : error 035: argument type mismatch (argument 2)
(40711) : error 035: argument type mismatch (argument 2)


CODE:
Код:
PlayerInfo[playerid][pBankPIN] = cache_get_row_int(0,4,handle);
PlayerInfo[playerid][pBankMoney]      = cache_get_row_int(0, 5, handle);
PlayerInfo[playerid][pBankAccount]    = cache_get_row_int(0, 6, handle);
PlayerInfo[playerid][pLotteryTicket]  = cache_get_row_int(0, 7, handle);
PlayerInfo[playerid][pWinner]         = cache_get_row_int(0, 8, handle);
PlayerInfo[playerid][pBriefcase]      = cache_get_row_int(0, 9, handle);
gatekey[playerid]   				  = cache_get_row_int(0, 10, handle);
gatekey2[playerid]           		  = cache_get_row_int(0, 11, handle);
gatekey3[playerid]         			  = cache_get_row_int(0, 12, handle);
gatekey4[playerid]    				  = cache_get_row_int(0, 13, handle);
gatekey5[playerid]        			  = cache_get_row_int(0, 14, handle);
gatekey6[playerid]         			  = cache_get_row_int(0, 15, handle);
gatekey7[playerid]        		 	  = cache_get_row_int(0, 16, handle);
gatekey8[playerid]       			  = cache_get_row_int(0, 17, handle);
gatekey9[playerid]   				  = cache_get_row_int(0, 18, handle);
gatekey10[playerid]           		  = cache_get_row_int(0, 19, handle);
GarageKey[playerid]       			  = cache_get_row_int(0, 20, handle);
HouseKey[playerid]     				  = cache_get_row_int(0, 21, handle);
PlayerInfo[playerid][pGiftBoxes]      = cache_get_row_int(0, 22, handle);
gifttimer[playerid]					  = cache_get_row_int(0, 23, handle);
PlayerInfo[playerid][pSecurityClearance] = cache_get_row_int(0, 24, handle);
PlayerInfo[playerid][pRedLaser]       = cache_get_row_int(0, 25, handle);
PlayerInfo[playerid][pGreenLaser]     = cache_get_row_int(0, 26, handle);
PlayerInfo[playerid][pOrangeLaser]    = cache_get_row_int(0, 27, handle);
PlayerInfo[playerid][pPinkLaser]      = cache_get_row_int(0, 28, handle);
PlayerInfo[playerid][pYellowLaser]    = cache_get_row_int(0, 29, handle);
PlayerInfo[playerid][pBlueLaser]      = cache_get_row_int(0, 30, handle);
pistol_skill[playerid]        		  = cache_get_row_int(0, 31, handle);
sdpistol_skill[playerid]       	      = cache_get_row_int(0, 32, handle);
deagle_skill[playerid]   			  = cache_get_row_int(0, 33, handle);
shotgun_skill[playerid]           	  = cache_get_row_int(0, 34, handle);
sawnoff_skill[playerid]       	      = cache_get_row_int(0, 35, handle);
spas12_skill[playerid]     		      = cache_get_row_int(0, 36, handle);
micro_skill[playerid]      			  = cache_get_row_int(0, 37, handle);
mp5_skill[playerid]       			  = cache_get_row_int(0, 38, handle);
ak47_skill[playerid]       			  = cache_get_row_int(0, 39, handle);
m4_skill[playerid]   				  = cache_get_row_int(0, 40, handle);
PlayerInfo[playerid][pDev]            = cache_get_row_int(0, 41, handle);
PlayerInfo[playerid][pLevel]       	  = cache_get_row_int(0, 42, handle);
PlayerInfo[playerid][pAdmin]     	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pSecKey]    	  = cache_get_row_int(0, 37, handle);
PlayerInfo[playerid][pStealthed]      = cache_get_row_int(0, 38, handle);
PlayerInfo[playerid][pPermBand]       = cache_get_row_int(0, 39, handle);
//Error PlayerInfo[playerid][pBanReason]   	  = cache_get_field_content(0, 40, handle);
//Error PlayerInfo[playerid][pPrisonReason]   = cache_get_field_content(0, 41, handle);
//Error PlayerInfo[playerid][pPrisonedBy]     = cache_get_field_content(0, 42, handle);
PlayerInfo[playerid][pAdminJailed]	  = cache_get_row_int(0, 43, handle);
PlayerInfo[playerid][pWarns]            = cache_get_row_int(0, 44, handle);
PlayerInfo[playerid][pDisabled]       	  = cache_get_row_int(0, 45, handle);
PlayerInfo[playerid][pDonateRank]     	  = cache_get_row_int(0, 46, handle);
PlayerInfo[playerid][pJoinDate][1]	  = cache_get_row_int(0, 47, handle);
PlayerInfo[playerid][pExpireDate][1]      = cache_get_row_int(0, 48, handle);
PlayerInfo[playerid][pJoinDate][2]       = cache_get_row_int(0, 49, handle);
PlayerInfo[playerid][pExpireDate][2] = cache_get_row_int(0, 50, handle);
PlayerInfo[playerid][pBanAppealer]      = cache_get_row_int(0, 51, handle);
PlayerInfo[playerid][pGangMod]            = cache_get_row_int(0, 52, handle);
PlayerInfo[playerid][pFactionMod]       	  = cache_get_row_int(0, 53, handle);
PlayerInfo[playerid][pGangDirector]     	  = cache_get_row_int(0, 54, handle);
Get New Problem.How to fix it?
Use the correct argument.
pawn Код:
cache_get_field_content(row, const field_name[], dest[], connectionHandle = 1)