Jump to content

C++ instead of LUA?


TheNightRider

Recommended Posts

I was told its much better than LUA so I was wondering if MTA server can use C++ as a resource :D

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
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

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
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 ? :redhotevil:

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...