Hellreaper 0 Posted August 28, 2016 Share Posted August 28, 2016 Hi, while Its pretty simple most likely, I seem to be unable to convert a table address to a string so I can know what item it is because that number doesnt mean anything to me... The function is returning an "object" but I cant find how to convert it over to a string like yourmod:itemID... Quote Link to post Share on other sites
0 Gorzoid 10 Posted August 30, 2016 Share Posted August 30, 2016 You kinda need give us more info, this post says almost nothing about what you are trying to do. so I can know what item it is because that number doesnt mean anything to me... item of what? if you mean a component then no the address is the only info you get on the component which you can see at the bottom of the item description. The function is returning an "object" but I cant find how to convert it over to a string like yourmod:itemID... what function? "object" is not even a type in lua turning table to a string is just tostring(tbl) but I'm guessing that's not what you want... Quote Link to post Share on other sites
0 Hellreaper 0 Posted September 4, 2016 Author Share Posted September 4, 2016 This is a partial post about the inventory access btw. The "object"(is an element of a table) is a value that is returned by ganys end inventory manager. I asked something along the lines of print(item.InSlot(x)). http://puu.sh/r390h/8c40e42f88.png This is what im trying to do and the result im getting if it stil isnt clear enough. (Sorry im bad at explaining xs) Quote Link to post Share on other sites
Hi,
while Its pretty simple most likely,
I seem to be unable to convert a table address to a string
so I can know what item it is because that number doesnt mean anything to me...
The function is returning an "object" but I cant find how to convert it over to a string like yourmod:itemID...
Link to post
Share on other sites