dugasz1 Posted April 21, 2017 Share Posted April 21, 2017 Hello guys! I'm trying to compile my module for MTA. (Just want to know how it woks and do some basic stuff, curiosity) But i'm using VS 2015 and the lua lib is for an older version i guess. So i have to compile lua with my project. Do you guys know which version of lua should i use? And any suggestions how to make this work? Link to comment
dugasz1 Posted April 21, 2017 Author Share Posted April 21, 2017 I fixed it. I can compile now ml_base it loads too. But : There was two main (in lua.c and luac.c) But why? I deleted luac.c (yolo) what the difference between them? I see in the example how can i register a function but can i call default mta functions? Link to comment
dugasz1 Posted April 21, 2017 Author Share Posted April 21, 2017 (edited) Solved. (If somebody want to know:) luac is the lua compiler's main file. The makefile will generate 1 library and a compiler exe. (Ok i discussed it with myself ) Edited April 21, 2017 by dugasz1 1 Link to comment
Simple0x47 Posted April 21, 2017 Share Posted April 21, 2017 The Lua version MTA uses I think is 5.1. 1 Link to comment
dugasz1 Posted April 21, 2017 Author Share Posted April 21, 2017 Yes about that. 5.1.2 works fine for me. (The include headers not 100% the same but it works) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now