enum enum_Itens
{
item_Id,
item_Type,
item_Model,
item_Name[24],
item_Limit,
bool:item_Candrop,
bool:item_CanUse,
item_Information[200]
}
new Itens[][enum_Itens] =
{
//ID Type Model Name Limit CanDrop CanUse Information
{0, ITEM_TYPE_NORMAL, 19382, "Emepty", "0", false, false, "N/A"}, // Line 63
{1, ITEM_TYPE_NORMAL, 11738, "Med Kit", "1", true, true, "~>~ Bla bla."}, // Line 64
{2, ITEM_TYPE_WEAPON, 348, "Desert Eagle", "1", true, true, "~>~ Bla bla 3"} // Line 65
};
./Source/Players/Inventory.pwn(63) : warning 228: length of initialler exceeds size of the enum field ./Source/Players/Inventory.pwn(63) : error 018: initialization data exceeds declared size
No. You have item_limits as a variable which isn't an array. You can't use string for item_limits so
"1" in your limits should just be 1 |
new Itens[][enum_Itens] =
{
//ID Type Model Name Limit CanDrop CanUse Information
{0, ITEM_TYPE_NORMAL, 19382, "Emepty", 0, false, false, "N/A"}, // Line 63
{1, ITEM_TYPE_NORMAL, 11738, "Med Kit", 1, true, true, "~>~ Bla bla."}, // Line 64
{2, ITEM_TYPE_WEAPON, 348, "Desert Eagle", 1, true, true, "~>~ Bla bla 3"} // Line 65
};