Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 21
- f = 32.123
- b = true
- s = "Text\n"
- table = {1002, 261, 87, 21}
- function InitaliseTest()
- io.write("LUA SCRIPT: Initalise Test File \n");
- io.write("LUA SCRIPT: Printing variables\n")
- io.write(string.format("LUA SCRIPT: i = %d\n", i))
- io.write(string.format("LUA SCRIPT: f = %f\n", f))
- io.write(string.format("LUA SCRIPT: b = %s\n", tostring(b)))
- io.write(string.format("LUA SCRIPT: s = %s\n", s))
- io.write("LUA SCRIPT: Calling Test Function\n")
- TestFunction(i, f, b, s)
- io.write(string.format("LUA SCRIPT: table: 1 = %s, 2 = %s, 3 = %s, 4 = %s\n", tostring(table[1]), tostring(table[2]), tostring(table[3]) , tostring(table[4])))
- io.write("LUA SCRIPT: Calling Test Table with table and return t\n")
- t = TestTable(table)
- io.write(string.format("LUA SCRIPT: t: 1 = %s, 2 = %s, 3 = %s, 4 = %s\n", tostring(t[1]), tostring(t[2]), tostring(t[3]) , tostring(t[4])))
- io.write(string.format("LUA SCRIPT: Added Event Lua_Update = %d with %s\n", Events.Lua_Update.value, tostring(hello)))
- AddEvent(Events.Lua_Update, hello);
- end
- function main()
- --[[TestFunction(i, f, b, s)]]--
- end
- run = false;
- function hello()
- if run == false then
- io.write("LUA SCRIPT: Hello World (function hello)\n")
- run = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement