Error 009
#1

pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(129) : error 009: invalid array size (negative, zero or out of bounds)
Reply
#2

Bump
Reply
#3

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
The error should be because of pInfo
Could you show where you declared/initialized pInfo?
Reply
#4

pawn Код:
enum pInfo
{
    pKey[128],
    pLevel,
    pAdmin,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pCK,
    pMuted,
    pExp,
    pCash,
    pAccount,
    pCrimes,
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pLottoNr,
    pJob,
    pPayCheck,
    pHeadValue,
    pJailed,
    pJailTime,
    pMats,
    pDrugs,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pChar,
    pContractTime,
    pDetSkill,
    pSexSkill,
    pBoxSkill,
    pLawSkill,
    pMechSkill,
    pJackSkill,
    pCarSkill,
    pNewsSkill,
    pDrugsSkill,
    Float:pHealth,
    Float:pSHealth,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pPcarkey,
    pPcarkey2,
    pPcarkey3,
    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,
    pWatch,
    pCrashed,
    pDrugPerk,
    pWarns,
    pVirWorld,
    pFuel,
};
I didnt start my registration system, but this is what will be on it.
Reply
#5

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
-code-

I didnt start my registration system, but this is what will be on it.
The last one, pFuel shouldn't have a ,
Reply
#6

Didnt work, ill just make that later.
Reply
#7

Show the code that is above the error line. The pawn compiler sometimes references an error on the previous line.
Reply
#8

pawn Код:
enum pInfo
{
   pPass[128],// EXAMPLE
   pJob,// EXAMPLE
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Make sure it overall looks something like that.
Reply
#9

pawn Код:
new motd[256];
Reply
#10

Quote:
Originally Posted by Lynn
Посмотреть сообщение
pawn Код:
enum pInfo
{
   pPass[128],// EXAMPLE
   pJob,// EXAMPLE
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Make sure it overall looks something like that.
That worked +1 rep
Reply


Forum Jump:


Users browsing this thread: