Re: How to create a C func that returns a lua table + (missing function)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How to create a C func that returns a lua table + (missing function)
- From: Romulo Bahiense <romulo@...>
- Date: 2005年8月18日 20:04:09 -0300
local tpos = GetPosTable()
print(tpos) -- says it's a table :)
print(tpos[1]) -- says nil :(
Well, if it says then a table is what it is. I haven't seen any part of
your code that stores a number index to the table, so, tpos[1] will
always return nil.
Try << print(tpos.px, tpos.py, tpos.xx) >>
--rb