lua string.format

This forum allows you to share scripts with other Zeus users. Please do not post bug reports, feature requests or questions to this forum, but rather use it exclusively for posting scripts or for the discussion of scripts that have been posted.
Post Reply
Posts: 1
Joined: Mon Jul 13, 2009 3:05 pm

lua string.format

Post 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.


Site Admin
Posts: 2547
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
Post Reply