SA-MP Forums Archive
error 079: inconsistent return types (array & non-array) - 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 079: inconsistent return types (array & non-array) (/showthread.php?tid=597262)



error 079: inconsistent return types (array & non-array) - AnoTek - 28.12.2015

When i compile the script i hava a lot of errors:


I search on the lines and i found:
Код:
INI_Int("HelpTime",PlayerInfo[playerid][pHelpTime]);
Код:
INI_Int("Origin",PlayerInfo[playerid][pOrigin]);
And something like that i don't put all because is same

How can i solve this?


Re: error 079: inconsistent return types (array & non-array) - xXRevolverXx - 28.12.2015

be sure that you have
Код:
#include <y_ini>
in your script, as also can you show me your Enum of PlayerInfo, and how did you defined pOrigin, show me me please so i can help


Re: error 079: inconsistent return types (array & non-array) - AnoTek - 28.12.2015

Quote:
Originally Posted by xXRevolverXx
Посмотреть сообщение
be sure that you have
Код:
#include <y_ini>
in your script, as also can you show me your Enum of PlayerInfo, and how did you defined pOrigin, show me me please so i can help
I have #include <YSI\y_ini>
This is the enum:
Код:
                                                                        enum pInfo
										{
											pKey[128],
											pLevel,
											pAdmin,
											pHelper,
											pDonateRank,
											gPupgrade,
											pDisabled,
											pReportTime,
											pHelpTime,
											pConnectTime,
											pNewbieTime,
											pNewbieMuted,
											pBanned,
											pFightStyle,
											pBox,
											pMuteTime,
											pWarTime,
											pPunish,
											pFwarn,
											pReg,
											pSex,
											pAge,
											pOrigin,
											pCK,
											pMuted,
											pStats,
											pExp,
											pCash,
											pAccount,
											pCrimes,
											pKills,
											pDeaths,
											pPcarkey,
											pPcarkey2,
											pPcarkey3,
											pArrested,
											pWantedDeaths,
											pWanted,
											pPhoneBook,
											pLottoNr,
											pImprumut,
											pRob,
											pSMS,
											pCall,
											pPasaport,
											pFishes,
											pBiggestFish,
											pJob,
											pPayCheck,
											pTow,
											pHeadValue,
											pJailed,
											pJailTime,
											pMats,
											pDrugs,
											pLeader,
											pMember,
											pFMember,
											pRank,
											pChar,
											pContractTime,
											pDetSkill,
											pSexSkill,
											pStealSkill,
											pLawSkill,
											pMechSkill,
											pJackSkill,
											pCarSkill,
											pNewsSkill,
											pDrugsSkill,
											pCookSkill,
											pFishSkill,
											Float:pHealth,
											Float:pSHealth,
											pInt,
											pLocal,
											pTeam,
											pModel,
											pPnumber,
											pPhousekey,
											pWarKills,
											pPointsKills,
											pPbiskey,
											Float:pPos_x,
											Float:pPos_y,
											Float:pPos_z,
											pCarLic,
											pFlyLic,
											pBoatLic,
											pFishLic,
											pGunLic,
											pGun1,
											pGun2,
											pGun3,
											pGun4,
											pAmmo1,
											pAmmo2,
											pAmmo3,
											pAmmo4,
											pCarTime,
											pPayDay,
											pPayDayHad,
											pCDPlayer,
											pWins,
											pLoses,
											pAlcoholPerk,
											pDrugPerk,
											pMiserPerk,
											pPainPerk,
											pTraderPerk,
											pTut,
											pWarns,
											pAdjustable,
											pFuel,
											pMarried,
											pMarriedTo[128],
										};
										new PlayerInfo[MAX_PLAYERS][pInfo];



Re: error 079: inconsistent return types (array & non-array) - 1fret - 28.12.2015

try changing this
pawn Код:
pMarriedTo[128],
to
pawn Код:
pMarriedTo[128]