Class cGroup
#4
1, A player may be a member of multiple groups, so this idea's not gonna work at all
2, What is Group in your code, is it a variable? because it definitely isn't a class name. The Lua error is telling you basically that you're using an undefined thing called "Group"
3, To see parameters for API functions, have a look at the bottom of Bindings.cpp file, there's a huuuge tolua_AllToLua_open() function that glues Lua to C++, find your class and function there and have a look at how it's glued. For example, cCraftingRecipe:GetIngredient() is glued in tolua_AllToLua_cCraftingRecipe_GetIngredient00() function, if you look that one up, you'll see that it takes one "const cCraftingRecipe" parameter (that's the Lua's hidden first parameter, denoted by using a colon instead of a dot), two number parameters and nothing more, it calls cCraftingRecipe's GetIngredient C++ function and then returns one result, "cItem".
Reply
Thanks given by:


Messages In This Thread
Class cGroup - by NiLSPACE - 02-15-2013, 07:29 AM
RE: Class cGroup - by xoft - 02-15-2013, 07:34 AM
RE: Class cGroup - by NiLSPACE - 02-15-2013, 07:52 AM
RE: Class cGroup - by xoft - 02-15-2013, 08:05 AM
RE: Class cGroup - by FakeTruth - 02-15-2013, 08:38 PM



Users browsing this thread: 1 Guest(s)