• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Script: error 018: initialization data exceeds declared size
#2
enum eEvents

{

? ? eID,

? ? eName[20],

? ? eCapacity,

? ? bool:eSetHealth,

? ? bool:eSetArmour,

? ? bool:eResetWeapons,

? ? bool:eDeadOnExitVehicle,

? ? bool:eGivePistol

};



new EventConfig[MAX_EVENTS][eEvents] = {

? ? // Corridas

? ? { EVENTID_RUN1, "Rally", 10, true, false, true, true, false },

? ? { EVENTID_RUN2, "Bike Trilha", 10, true, false, true, true, false },

? ? { EVENTID_RUN3, "Barco", 10, true, false, true, true, false },

? ? { EVENTID_RUN4, "Kart", 10, true, false, true, true, false },

? ? { EVENTID_RUN5, "Corrida Maluca", 10, true, false, true, true, false },

? ? { EVENTID_RUN6, "Tratorrida", 10, true, false, true, true, false },

? ? { EVENTID_RUN7, "Moto Cross", 10, true, false, true, true, false },

? ? // ?ltimo Sobrevivente

? ? { EVENTID_SURVIVEL1, "?ltimo Sobrevivente", 10, true, true, true, false, true },

? ? // Funny Games

? ? { EVENTID_FUNNY1, "FallOut", MAX_PLAYERS, true, false, true, false, false },

? ? { EVENTID_FUNNY2, "Color Match", MAX_PLAYERS, true, false, true, false, false },

? ? { EVENTID_FUNNY3, "Hay", MAX_PLAYERS, true, false, true, false, false },

? ? { EVENTID_FUNNY4, "Tesouro", MAX_PLAYERS, false, false, false, false, false },

};





Last item in the list requires no comma, that is how you tell the compiler that that item is the last one in the list.
  Reply


Messages In This Thread
RE: Script: error 018: initialization data exceeds declared size - by Virsenas - 2021-03-12, 02:40 PM

Forum Jump: