Adding lore to a cItem
#1
Game 
Hi, 

So I've been trying to set a lore to the cItem via the constructor, but I get the error "argument #2 is 'number'; '[no object' expected]" for the second line




Code:
local weapons = cItem(E_ITEM_DIAMOND_SWORD, 1, 0                 , "thorns=0", "Weapons", {"Lore1", "Lore2})
local blocks = cItem(E_BLOCK_WOOL         , 1, E_META_WOOL_ORANGE, "thorns=0", "Blocks" , {"Lore1", "Lore2})
local armour = cItem(E_ITEM_DIAMOND_HELMET, 1, 0                 , "thorns=0", "Armour" , {"Lore1", "Lore2})
The API documentation is a bit lacking in this area, somewhere it says that lore is a string, elsewhere it says that it's a Table, and now I have no idea how to set  it correctly.

Can someone give me an example or explain to me why it isn't working?

Thanks in advance
Reply
Thanks given by:


Messages In This Thread
Adding lore to a cItem - by MGlolenstine - 08-01-2018, 08:36 PM
RE: Adding lore to a cItem - by NiLSPACE - 08-01-2018, 09:30 PM
RE: Adding lore to a cItem - by MGlolenstine - 08-01-2018, 09:50 PM
RE: Adding lore to a cItem - by tigerw - 08-02-2018, 11:10 PM
RE: Adding lore to a cItem - by MGlolenstine - 08-03-2018, 05:45 PM
RE: Adding lore to a cItem - by tigerw - 08-02-2018, 11:12 PM
RE: Adding lore to a cItem - by tigerw - 08-03-2018, 11:32 PM



Users browsing this thread: 5 Guest(s)