undefined symbol "Account"
#1

I got this
pawn Код:
if(dialogid == 300)
    {
        new tmp[128];
        new idx;
        tmp = strtok(inputtext, idx);
        if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
        {
            Account[playerid][pSex] = 1;
            SetPlayerSkin(playerid, 101);
            Account[playerid][pModel] = 101;
            return false;
        }
        else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female")))
        {
            Account[playerid][pSex] = 2;
            SetPlayerSkin(playerid, 12);
            Account[playerid][pModel] = 12;
            return false;
        }
        else
        {
            ShowPlayerDialog(playerid,300,DIALOG_STYLE_INPUT,"{0080FF}                        Sex","{FFFFFF}What is your gender? {0080FF}Male {FFFFFF}or {0080FF}Female  ","Proceed","Cancel");
        }
When I compile it gives me the following errors

Код:
C:\Users\Jaber\Desktop\samp03x_svr_R1-2_win32\gamemodes\UNG.pwn(698) : error 047: array sizes do not match, or destination array is too small
C:\Users\Jaber\Desktop\samp03x_svr_R1-2_win32\gamemodes\UNG.pwn(701) : error 017: undefined symbol "Account"
C:\Users\Jaber\Desktop\samp03x_svr_R1-2_win32\gamemodes\UNG.pwn(703) : error 017: undefined symbol "Account"
C:\Users\Jaber\Desktop\samp03x_svr_R1-2_win32\gamemodes\UNG.pwn(708) : error 017: undefined symbol "Account"
C:\Users\Jaber\Desktop\samp03x_svr_R1-2_win32\gamemodes\UNG.pwn(710) : error 017: undefined symbol "Account"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
But I have it defined
pawn Код:
enum pInfo
{
    pKey[128],
    pName[256],
    pCrashed,
    pQuitOnCar,
    pInterior,
    pLevel,
    pBankCard,
    pBankPin,
    pAdmin,
    pMask,
    pMask1,
    pDonateRank,
    pDrugs,
    gPupgrade,
    pReg,
    pSex,
    pAge,
    pHungry,
    pPrisonOrder,
    pOrigin,
    pNearHQ,
    pSpawn,
    pCK,
    pCarlock,
    pMuted,
    pExp,
    pCash,
    pHour,
    pDays,
    pAccount,
    pFishes,
    pRod,
    pHay,
    pCrimes,
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pWantedLevel,
    pWantedReason[128],
    pGMember,
    pLottoNr,
    pRadio,
    pRadioFrequency,
    pDetSkill,
    pBankSteal,
    pJob,
    pPayCheck,
    pHeadValue,
    pJailed,
    pJailTime,
    pMats,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pGRank,
    pVirtualWorld,
    pSexSkill,
    pBoxSkill,
    pWatch,
    pPayDayTime,
    pCarSkill,
    pNewsSkill,
    pCookSkill,
    pMatsHolding,
    Float:pHealth,
    Float:pSHealth,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pRentKey,
    pPbiskey,
    pWatercan,
    pGun0,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo0,
    pAmmo1,
    pAmmo2,
    pBanned,
    pAmmo4,
    pScooterLic,
    pBigBikeLic,
    pCarLic,
    pFlyLic,
    pBoatLic,
    pGunLic,
    pCarTime,
    pDrugTimer,
    pCDPlayer,
    pWins,
    pLoses,
    pPDA,
    pAlcoholPerk,
    pDrugPerk,
    pPayDay,
    pPayDayHad,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pMissionNr,
    pWarns,
    pFuel,
    pSkate,
    pPcarkey1,
    pPcarkey2,
    pPcarkey3,
    pPwine,
    pPrag,
    pPlighter,
    pPcigarette,
    pRequestingBackup,
    pCarLicS,
    pFlyLicS,
    pBoatLicS,
    pGunLicS,
    pPen,
    pNoteTaken1,
    pNoteTaken2,
    pNoteTaken3,
    pNoteTaken4,
    pNoteTaken5,
    pNote1[128],
    pNote2[128],
    pNote3[128],
    pNote4[128],
    pNote5[128],
    pPhoneNumber1,
    pPhoneNumber2,
    pPhoneNumber3,
    pPhoneNumber4,
    pPhoneNumber5,
    pPhoneContact1[128],
    pPhoneContact2[128],
    pPhoneContact3[128],
    pPhoneContact4[128],
    pPhoneContact5[128],
    pSQLID,
    pNewspaper,
    pGunI,
    pAmmoI,
    pDrugName,
    pMatsI,
    pCigaretteI,
    pPGun1,
    pPGun2,
    pPGun3,
    pPGun4,
    pPAmmo1,
    pPAmmo2,
    pPAmmo3,
    pPAmmo4,
    pLanguage,
    pJobTime,
};
new Account[MAX_PLAYERS][pInfo];
Reply
#2

Where is the "new Account[MAX_PLAYERS][pInfo];" located in your script?
Reply
#3

Oh yeah i got it thanks, but one more error

Код:
(1507) : error 047: array sizes do not match, or destination array is too small
this is the line
pawn Код:
tmp = strtok(inputtext, idx);
Reply
#4

Код:
new tmp[256];
Reply
#5

Alright, thanks, +REP
Reply
#6

No problem, was happy to help.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)