TheNightRider Posted November 25, 2011 Share Posted November 25, 2011 Could anyone tell me if I could use C++ programming for my resourcing instead of LUA? Any real advice would be very welcome Thanks. Link to comment
CapY Posted November 25, 2011 Share Posted November 25, 2011 C++ is much harder, so i prefer LUA. Link to comment
TheNightRider Posted November 25, 2011 Author Share Posted November 25, 2011 sure but am a student and C++ is 1 of the things I have to learn. I was told its much better than LUA so I was wondering if MTA server can use C++ as a resource Link to comment
bandi94 Posted November 25, 2011 Share Posted November 25, 2011 i am study C++ for 3 ears and its much harder that LUA and LUA is based on C++ only he have the special command's for MTA but you can learn that from wiki so MTA LUA is 50% C++ based Link to comment
CapY Posted November 25, 2011 Share Posted November 25, 2011 LUA is not based on C++.(atleast that's what i heard.) http://www.lua.org/ Link to comment
unknooooown Posted November 25, 2011 Share Posted November 25, 2011 LUA is not based on C++.(atleast that's what i heard.)http://www.lua.org/ Influenced by: C++, CLU, Modula, Scheme, SNOBOLhttp://en.wikipedia.org/wiki/Lua_%28pro ... anguage%29 C++ is much harder, so i prefer LUA. That doesnt answer his questions in any way. Why do you bother posting answers CapY? You never really reply to questions.. Link to comment
12p Posted November 25, 2011 Share Posted November 25, 2011 I was told its much better than LUA so I was wondering if MTA server can use C++ as a resource It's true that C++ is better than Lua. But if you don't know how to use it as a PRO, it won't be better; it will be a headache. The best thing you can do is to learn C++ by some years... Take a look at Lua... Compare... Sincerely, Lua can do almost anything in MTA, the only reason for you to use C++, is to create a patch. Link to comment
CapY Posted November 25, 2011 Share Posted November 25, 2011 Could anyone tell me if I could use C++ programming for my resourcing instead of LUA? No, use LUA. @Wafamande you're doing that right now. I just gaved him advice. Link to comment
unknooooown Posted November 25, 2011 Share Posted November 25, 2011 Could anyone tell me if I could use C++ programming for my resourcing instead of LUA? No, use LUA. @Wafamande you're doing that right now. I just gaved him advice. You didn't give him advise. You just gave him some wrong info, like you do most of the time. At least try to Google your "advise" before posting it. Its wrong 80% of the time. Link to comment
50p Posted November 25, 2011 Share Posted November 25, 2011 C++ is a programming language whereas Lua is a scripting language. Programming and scripting is almost the same but traditional programming is more complex and has more control. You are limited with scripting in Lua for MTA since MTA blocks Lua's libraries and some of functions from different libraries. Programming in C++ has almost no limits and MTA would have to disable a lot of its features. C++ has to be compiled to compute, scripts don't have to be compiled and are easy to modify. Basically, scripting is very simple compared to traditional programming. You can't program resources in C++ but you can program "modules" that can extend MTA server's features. https://wiki.multitheftauto.com/wiki/Modules Link to comment
CapY Posted November 25, 2011 Share Posted November 25, 2011 Look, dude. If you don't have nothing smart to say, i suggest to get out of this topic. Like you do most of the time. And what's that supposted to mean ? Nice one 50p. Link to comment
unknooooown Posted November 25, 2011 Share Posted November 25, 2011 Look, dude.If you don't have nothing smart to say, i suggest to get out of this topic. Like you do most of the time. And what's that supposted to mean ? Nice one 50p. Look through your posts and see how many times you write: "No/Yes.. Blah blah blah.. But remember to do X, because I can't make it work any other way." Seriously dude.. If you feel that you can help people, thats just great and please do so! But if the only advise you can give is what you THINK works and your own hacks to make things work.. Well.. People cant really use that, as its most likely not the correct way of doing it even if it works atm. I am not the only person that have noticed this CapY.. I guess that I am just the only one confronting you about it. Write me in private.. Dont wanna go anymore offtopic that we already are. Link to comment
12p Posted November 25, 2011 Share Posted November 25, 2011 TheNightRider: 50p has got the best answer, pay attention to him only. CapY and Wafamde, can u please use PMs? Thank you. Link to comment
TheNightRider Posted November 25, 2011 Author Share Posted November 25, 2011 Thanks people for your input, I do know about the wikki if you look on my profile you'll see a automated gate script which is my first script I'll have to learn to make Modules for the server I guess hopefully I'll pull it off Link to comment
12p Posted November 25, 2011 Share Posted November 25, 2011 Nice! Good luck making your modules! Link to comment
Jaysds1 Posted November 26, 2011 Share Posted November 26, 2011 How do you make a module? Dont you have to use some other code for that? Link to comment
CapY Posted November 26, 2011 Share Posted November 26, 2011 C# or C++ only, as far as i know. Link to comment
qaisjp Posted November 26, 2011 Share Posted November 26, 2011 What 50p said is correct, modules would be pretty good if you want to use C++ advise *advice Link to comment
50p Posted November 27, 2011 Share Posted November 27, 2011 C# or C++ only, as far as i know. Modules are written only in C++. They can define new Lua functions that can be called like any other MTA functions. Different kinds of SDKs can be written in any language that supports request web page with HTTP POST and encode/decode JSON. That's C#, Java, PHP, etc. even C++. 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