Jump to content

Learning LUA


dashe123

Recommended Posts

Posted

Greets. I want to learn LUA language by myself but I can't understand a thing. I read MTA Wiki a lot but all I can do is write a simple script using an example. I want to learn make scripts without any help or examples. How do I start scripting without anyone helping? Tips? HELP!?!??

Posted

I started learning lua modifying the race_starter_pack, i started to modify the strings: label names, outputchatboxs and etc, then i read the wiki and i started to make my own scripts :D

Posted

I started learning LUA whit wiki +some very easy scripts and opening some downloaded script ( but i have 4 year's exp in C++) you will learn a litel harder try to make some easy scripts and opening some scripts and see how its maked

Posted

Begin with simple scripts from wiki and try to make them more complicated, you have to get familiar with MTA functions. Start your own gamemode (RPG/Deathmatch), don't start with complicated gamemodes with SQLite/MySQL because you need the base. (somebody will tell you to read LUA ebooks... don't read every page because you lose time... read about syntax, operators , conditional structures (if...else then, switch...case1...case2...default), repetitive structures(do...while, while...do, for...do). What I mean is that you have to learn the BASIC of programming languages but you should stick to LUA syntax... don't get c++ books to learn about these structures.

Posted

If you use the search panel in the top right hand corner using the keyword “tutorials” you might come across with some useful tips. I know in the past fellow players have wrote little tutorials which have certainly helped beginners.

Don’t hesitate to post your problems on the forum though. Or, if you have IRC installed, visit the #mta.scripting channel for any help.

Posted

I started with a /help command.

When 'someone' types it. it outputs in the chatbox: "Hello ..playerName.."!" (eg. "Hello Jesseunit!")

Then i started making the code more advanced, Amin only > GUI > Editable text w/ GUI window > etc, etc,

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