lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Sean,

>>   sprintf(func, "hook_object_update", n);
> What is with this line?  What is the variable n there?

Sorry, I missed this line when I was simplifying the code for posting. In  
the original line a specific function with a number (n) was called.

The error was in the missing "lua.pop(1)". I didn't know that lua.tonumber  
does not pop the value from the stack.

Thx, it works perfectly now.
Jens