Independant function calls?
#12
I would try that, but I always get errors in the console.
Here's the code I used to replicate it:

Code:
local items = cItems()
items:Add(E_ITEM_DIAMOND_SWORD, 1, 100)

Here's the exact console error I get:

Warn [20:15:45] Stack trace:
Warn [20:15:45] [C](-1): Add
Warn [20:15:45] Plugins/MCSmash/hooks.lua(136): (no name)
Warn [20:15:45] Stack trace end
Warn [20:15:45] Error in plugin MCSmash calling function <callback>()
Warn [20:15:45] LUA: Plugins/MCSmash/hooks.lua:136: error in function 'Add'.
argument #1 is 'class cItems'; 'cItems' expected.



Oh never mind, my bad, I just downloaded the latest binary and it fixed itself. I was using a version over a month old.
Reply
Thanks given by:


Messages In This Thread
Independant function calls? - by DiamondToaster - 01-17-2015, 12:59 PM
RE: Independant function calls? - by xoft - 01-17-2015, 05:23 PM
RE: Independant function calls? - by xoft - 01-17-2015, 05:27 PM
RE: Independant function calls? - by sphinxc0re - 01-17-2015, 10:07 PM
RE: Independant function calls? - by xoft - 01-17-2015, 11:08 PM
RE: Independant function calls? - by Seadragon91 - 01-17-2015, 11:57 PM
RE: Independant function calls? - by xoft - 01-18-2015, 03:51 AM
RE: Independant function calls? - by tonibm19 - 01-18-2015, 04:27 AM
RE: Independant function calls? - by tigerw - 01-18-2015, 09:09 AM
RE: Independant function calls? - by DiamondToaster - 01-18-2015, 11:16 AM



Users browsing this thread: 3 Guest(s)