Lua?

BlitzMax Forums/BlitzMax Programming/Lua?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks but im still having a few problems.

I have this as my code:

Local state:Byte Ptr = lua_open()

lua_dofile(state,"Script.lua".ToCString())

lua_close(state)

Input()


With this as the script file:
print ("hello")


Now i was reading about LUA on the manual and a tutorial. The tutorial said that print("hello") should work. I read the manual and then checked out the mod and found that it does include the C header files. Now i'm not an an expert on C so i don't know whether there is something i'm mising out or whether i cant use those commands and i have to create them like you did in your example. But if the latter is the case then why use LUA when i could just make up my own sort of script?