Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lua_createtable(L, 0, 3);
- lua_pushstring(L, "Value1");
- lua_setfield(L, -2, "Key1");
- lua_pushstring(L, "Value2");
- lua_setfield(L, -2, "Key2");
- lua_createtable(L, 0, 2);
- lua_pushstring(L, "hp");
- lua_setfield(L, -2, "100");
- lua_pushstring(L, "distance");
- lua_setfield(L, -2, "1000");
- lua_setfield(L, -2, "Data");
- lua_setglobal(L, "Game");
Advertisement
Add Comment
Please, Sign In to add comment