29.05.2015, 23:43
Enum
Errors
Error Code
How to fix?
PHP код:
enum pInfo
{
pKey[131],
pLevel,
pAdmin,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pCash,
pHospital,
pMuted,
pPrisonReason[128],
pPrisonedBy[MAX_PLAYER_NAME],
pFlag[128],
pRMuted,
pRMutedTotal,
pRMutedTime,
pVMuted,
pVMutedTime,
pFactionModerator,
pGangModerator,
pExp,
pAccount,
pCrimes,
pPaintTeam,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pToggedVIPChat,
pBiggestFish,
pJob,
pAutoTextReply[64],
pPhonePrivacy,
pJob2,
pNMute,
pNMuteTotal,
pAmute,
pAmuteTotal,
pADMute,
pADMuteTotal,
pOOCMute,
pOOCMuteTotal,
pCMute,
pHelpMute,
pPayCheck,
pPayment,
pContract,
pContract2,
pHeadValue,
pJailed,
pJailTime,
pWRestricted,
pMats,
pPackages,
pGM,
pLeader,
pMember,
pDivision,
pDetective,
pAir,
pHenry,
pTom,
pMary,
pDavid,
pSierra,
pGeorge,
pRobert,
pVictor,
pFMember,
pSpeakerPhone,
pRank,
pChar,
pStreetRep,
pRepHandOut,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pTruckSkill,
pGarbageSkill,
pUtilSkill,
pWantedLevel,
pGunSkill,
p9mmSkill,
pSilencedSkill,
pDeagleSkill,
pShotgunSkill,
pSawnoffSkill,
pSpasSkill,
pUziSkill,
pMp5Skill,
pAKSkill,
pM4Skill,
pGoods,
pSMats,
pPot,
pHeroin,
pCrack,
pMeth,
pSDrugs,
pMInsure,
pPcarkey,
pPcarkey2,
pPcarkey3,
pBadgeNumber,
pRoadblock,
pHelper,
pNewsSkill,
pDrugsSkill,
pArmsSkill,
pSmugSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pArmor,
Float:pSArmor,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPhousekey2,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
Float:pPos_r,
pCarLic,
pCarLicP,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic,
pWeedLic,
pCDLic,
pGuns[12],
pAGuns[12],
pGunAmmo[12],
pCarTime,
pPayDay,
pPayDayHad,
pCDPlayer,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pWarns,
pLWarns,
pRPSkill,
pAdjustable,
pMarried,
pC4,
pC4Get,
pC4Used,
pMarriedTo[128],
pLock,
pLockCar,
pSprunk,
pCigar,
pPole,
pSpraycan,
pRope,
pRag,
pFuelCan,
pDice,
pBombs,
pDuty,
pFightStyle,
pIP[32],
pBanned,
pPermaBanned,
pDisabled,
pAccent,
pCHits,
pFHits,
pCrates,
pVW,
pHouseInvite,
pClothes,
pRenting,
pVehicles,
pVehFile,
pVehActive,
pType1,
pTempVIP,
pBuddyInvited,
pVIPInviteDay,
pTokens,
pPaintTokens,
pType2,
pType3,
pType4,
pType5,
pDrugsTime,
pLawyerTime,
pGangWarn,
pFactionBanned,
pCSFBanned,
pMechTime,
pSexTime,
pLawyerFreeTime,
pGiftTime,
pRobTime,
pWepTime,
pContractBy[32],
pContractDetail[64],
pBanAppealer,
pShopTech,
pUndercover,
pTogReports,
pRadio,
pRadioFreq,
pDutyHours,
pAcceptedHelp,
pAcceptReport,
pTrashReport,
pInsurance,
pTriageTime,
pVehicleKeys,
pVehicleKeysFrom,
pTaxiLicense,
pTicketTime,
pScrewdriver,
pSmslog,
pSmslog0[256],
pSmslog1[256],
pSmslog2[256],
pSmslog3[256],
pSmslog4[256],
pSmslog5[256],
pSmslog6[256],
pSmslog7[256],
pSmslog8[256],
pSmslog9[256],
pKillLog0[256],
pKillLog1[256],
pKillLog2[256],
pKillLog3[256],
pKillLog4[256],
pKillLog5[256],
pKillLog6[256],
pKillLog7[256],
pKillLog8[256],
pKillLog9[256],
pVmsg1[256],
pVmsg2[256],
pVmsg3[256],
pVmsg4[256],
pVmsg5[256],
pVnum1[256],
pVnum2[256],
pVnum3[256],
pVnum4[256],
pVnum5[256],
pWristwatch,
pSurveillance,
pTire,
pFirstaid,
pRccam,
pReceiver,
pGPS,
pSweep,
pSweepLeft,
pBugged,
pCheckCash,
pChecks,
pWExists,
Float:pWX,
Float:pWY,
Float:pWZ,
pWVW,
pWInt,
pWValue,
pWObject,
pWTimer,
pWSeeds,
pRawOpium,
pSyringe,
pWarrant[128],
pJudgeJailTime,
pJudgeJailType,
pBeingSentenced,
pProbationTime,
pVehMods,
pCarInsurance,
pDMIndicators,
pDMReport0[63],
pDMReport1[63],
pDMReport2[63],
pDMReport3[63],
pDMReport4[63],
pDMReport5[63],
pDMReport6[63],
pDMReport7[63],
pDMReport8[63],
pDMReport9[63],
pDMKills,
pOrder,
pOBlocked,
pCallsAccepted,
pPatientsDelivered,
pLiveBanned,
pFreezeBank,
pServiceTime,
pDispatch,
pDispatchOn,
pATCCert,
pATCOn,
pRobbingStore,
pRobbingBank,
pRobbingPaloBank,
pRobbingSFBank,
pRobbingLARecord,
pRobbingLADonut,
pRobbingFCBank,
pRobbingCCBank,
pRobbingLAPigpen,
pRobbingLAIdlewood,
pRobbingLAKFC,
pRobbingBBGas,
pRobbingBBDennys,
pRobbingAPBarber,
pRobbingLVNEGas,
pRobbingLVSGas,
pRobbingLVCoffee,
pReceivedSpeedTicket,
pSpeedTix,
pSpeedoOn,
pRefuel,
pHasStereo,
pTogRadio,
pPSPlaying,
pLoadCash,
pHasGPS,
pJackingCar,
pHasCarJack,
pJackAttempts,
pUnListed,
pAcceptID,
pJustLogged,
pLegalTruckJob1,
pLegalTruckJob2,
pLegalTruckJob3,
pIllegalTruckJob1,
pIllegalTruckJob2,
pIllegalTruckJob3,
pTruckingLevel,
pTruckingXP,
pReportsAccepted,
pAMSSent,
Text3D:aMeID,
aMeStatus,
pBadgeNum,
pFLAttached,
pTLAttached,
pEntered,
pTogSpeedo,
pTollBoothCharge,
pAtTollBooth,
pEmail[63],
p911sAccepted,
pArrestsMade,
pInfractionsIssued,
pOverdose,
pNeededHeroin,
pNeededPot,
pNeededCrack,
pNeededMeth,
pColdMeds,
pBatteryAcid,
pCrackStuff,
pMoonshine,
p40ounce,
pZipPot,
pZipHeroin,
pZipCrack,
pZip,
pCase,
pCasecash,
pLoggedIn,
pLoginTime,
pEnrolledEZPass,
pPayedToll,
pStatch[256],
pChopShopped,
pDeported,
pAMuteTime[128],
pCMuteTime[128],
pAdMuteTime[128],
pNMuteTime[128],
pDeportTime[128],
pOOCMuteTime[128],
MSlot,
Slotu,
iSlot[MAX_INVENTOY_SLOTS],
iAmount[MAX_INVENTOY_SLOTS]
};
new PlayerInfo[MAX_PLAYERS+1][pInfo];
Код:
D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3354) : error 017: undefined symbol "PlayerInfo" D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3356) : error 017: undefined symbol "PlayerInfo" D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3356) : error 029: invalid expression, assumed zero D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3356) : warning 215: expression has no effect D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3356) : error 001: expected token: ";", but found "]" D:\San Andreas Life Roleplay\gamemodes\SAL-RP_script.PWN(3356) : fatal error 107: too many error messages on one line
PHP код:
stock ShowInventory(playerid)
{
for(new i =0;i<PlayerInfo[playerid][MSlot];i++) // 3354
{
if(PlayerInfo[playerid][iSlot][i] != 0) // 3356
{
PlayerTextDrawSetPreviewModel(playerid, InvItem[i],PlayerInfo[playerid][iSlot][i]);
PlayerTextDrawShow(playerid,InvItem[i]);
}
else
{
PlayerTextDrawHide(playerid,InvItem[i]);
}
}
switch(PlayerInfo[playerid][MSlot])
{
case 0:PlayerTextDrawSetString(playerid,Inventory[13],"Project V Inventory");
case 1..15:PlayerTextDrawSetString(playerid,Inventory[13],"Smersh Backpack");
case 16..35:PlayerTextDrawSetString(playerid,Inventory[13],"Hunting Backpack");
case 36..50:PlayerTextDrawSetString(playerid,Inventory[13],"Mountain Backpack");
}
PlayerTextDrawSetPreviewModel(playerid,Inventory[5],GetWeaponModel(GetPVarInt(playerid,"WeaponVar")));
PlayerTextDrawSetPreviewModel(playerid,Inventory[4],GetPlayerSkin(playerid));
PlayerTextDrawSetString(playerid,Inventory[9],"");
PlayerTextDrawSetString(playerid,Inventory[10],"");
new s[128];format(s,sizeof(s),"Inventory %d/%d",PlayerInfo[playerid][Slotu],PlayerInfo[playerid][MSlot]);
PlayerTextDrawSetString(playerid,Inventory[3],s);
for(new i =0;i<14;i++)
{
PlayerTextDrawShow(playerid,Inventory[i]);
}
SetPVarInt(playerid,"IAModelid",0);
SetPVarInt(playerid,"IAAmount",0);
SetPVarInt(playerid,"IModelid",0);
SetPVarInt(playerid,"IAmount",0);
SetPVarInt(playerid,"IClickSlot",-1);
SelectTextDraw(playerid,0xAFAFAFAA);
SetPVarInt(playerid,"ShowInventory",1);
return 1;
}