SuperStrict
Import axe.luascript
Import axe.lua
Global scriptEnv:TLuaScriptEngine = New TLuaScriptEngine
scriptEnv.Reset()
Function LUA_Greet1:Int( luastate:Byte Ptr )
Local name$=scriptEnv.CheckString(-1)
Print("Hello, "+name$+"!")
Return 1
End Function
scriptEnv.AddFunction(LUA_Greet1,"F_GreetTest1")
scriptEnv.setscripttext("F_GreetTest1('Test')","")
scriptEnv.runscript()
scriptEnv.ShutDown()
Need help... when i start it, it print:
Hello, @èc!
PLz help me
Import axe.luascript
Import axe.lua
Global scriptEnv:TLuaScriptEngine = New TLuaScriptEngine
scriptEnv.Reset()
Function LUA_Greet1:Int( luastate:Byte Ptr )
Local name$=scriptEnv.CheckString(-1)
Print("Hello, "+name$+"!")
Return 1
End Function
scriptEnv.AddFunction(LUA_Greet1,"F_GreetTest1")
scriptEnv.setscripttext("F_GreetTest1('Test')","")
scriptEnv.runscript()
scriptEnv.ShutDown()
Need help... when i start it, it print:
Hello, @èc!
PLz help me