Page 1 of 1

lua string.format

Posted: Mon Jul 13, 2009 3:17 pm
by valtoni
I'm trying to write a macro to get the name of a function in C code, but every time I use the function

Code: Select all

string.format("%c", ... )
, I get the following error message:

attempt to index local `string' (a nil value)

I'm using Zeus v. 3.93.

Thanks,

Valtoni

Posted: Tue Jul 14, 2009 12:45 am
by jussij
string.format("%c", ... )
There is an example of the string.format function in the c:\Program Files\Zeus\zScript\char.lua file.

I checked this script and it ran fine for me.
I'm using Zeus v. 3.93

You are running a very old version of Zeus, which will also means you are running a very old version of Lua.

If the script above does not run on your version of Zeus you might in fact be seeing a bug in Lua itself :?

Cheers Jussi