[AJUDA] erro 009 por favor me ajuda
#1

Pessoal nгo consigo infelizmente concertar essa linha


Erro: D:\GAMEMO~2\GMBSG~1\FILTER~1\PORTA-~1.PWN(41) : error 009: invalid array size (negative, zero or out of bounds)

pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Por favor o ъnico erro da FS !
Reply
#2

Por favor mande algumas linhas que estejam acima dessa para tentarmos solucionar este erro.
Reply
#3

Tenta mandar a Enum pInfo...
Reply
#4

Nos envie o enum pInfo.
Reply
#5

mals pela demora, ai o enum..:

enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pExp,
pCash,
pDolar,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pDrugs,
pLider,
pMascara,
pMascarado,
pMembro,
pCargo,
pFMember,
pRank,
pChar,
pRequestingBackup,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
FloatHealth,
FloatSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPcarkey,
pPcarkey2,
pPcarkey3,
pPnumber,
pPhousekey,
pPbiskey,
FloatPos_x,
FloatPos_y,
FloatPos_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,
pMissionNr,
pWarns,
pAdjustable,
pFuel,
pMarried,
pLastLogin[20],
pPremmyExpire[10],
pMarriedTo[128]
};
Reply
#6

pawn Код:
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pExp,
pCash,
pDolar,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pDrugs,
pLider,
pMascara,
pMascarado,
pMembro,
pCargo,
pFMember,
pRank,
pChar,
pRequestingBackup,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
FloatHealth,
FloatSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPcarkey,
pPcarkey2,
pPcarkey3,
pPnumber,
pPhousekey,
pPbiskey,
FloatPos_x,
FloatPos_y,
FloatPos_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,
pMissionNr,
pWarns,
pAdjustable,
pFuel,
pMarried,
pLastLogin[20],
pPremmyExpire[10],
pMarriedTo[128],
};
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#7

eu puis o que vc me mandou e deu o mesmo erro nessa linha:
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
help-me
Reply
#8

Shickcard o seu code estб errado sim.

Quando se usa um enum a ultima linha nгo deve ter virgula, e й isto que ocorre no seu codigo.
Reply
#9

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Shickcard o seu code estб errado sim.

Quando se usa um enum a ultima linha nгo deve ter virgula, e й isto que ocorre no seu codigo.
Eu jб usei enum com vнrgula e sem vнrgula no ultimo item, e funciona perfeitamente os dois, a ъnica diferenзa entre os dois й que sem vнrgula vocк economiza 1 caracter no GM oO
Reply
#10

PHP код:

new 
     
pPremmyExpire[10],
     
pMarriedTo[128],
     
pLastLogin[20],
     
pKey[128];
enum pInfo
{
   
pLevel,
   
pAdmin,
   
pDonateRank,
   
gPupgrade,
   
pConnectTime,
   
pReg,
   
pSex,
   
pAge,
   
pOrigin,
   
pCK,
   
pMuted,
   
pExp,
   
pCash,
   
pDolar,
   
pAccount,
   
pCrimes,
   
pKills,
   
pDeaths,
   
pArrested,
   
pWantedDeaths,
   
pPhoneBook,
   
pLottoNr,
   
pFishes,
   
pBiggestFish,
   
pJob,
   
pPayCheck,
   
pHeadValue,
   
pJailed,
   
pJailTime,
   
pMats,
   
pDrugs,
   
pLider,
   
pMascara,
   
pMascarado,
   
pMembro,
   
pCargo,
   
pFMember,
   
pRank,
   
pChar,
   
pRequestingBackup,
   
pContractTime,
   
pDetSkill,
   
pSexSkill,
   
pBoxSkill,
   
pLawSkill,
   
pMechSkill,
   
pJackSkill,
   
pCarSkill,
   
pNewsSkill,
   
pDrugsSkill,
   
pCookSkill,
   
pFishSkill,
   
FloatHealth,
   
FloatSHealth,
   
pInt,
   
pLocal,
   
pTeam,
   
pModel,
   
pPcarkey,
   
pPcarkey2,
   
pPcarkey3,
   
pPnumber,
   
pPhousekey,
   
pPbiskey,
   
FloatPos_x,
   
FloatPos_y,
   
FloatPos_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,
   
pMissionNr,
   
pWarns,
   
pAdjustable,
   
pFuel,
   
pMarried,

new 
PlayerInfoMAX_PLAYERS ][ pInfo ]; 
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)