Jump to content

[Help]Usage of semicolon(;)


Recommended Posts

Where can i use semicolon ( ; )? I think all of you know what's the usage of semicolon, although i'll post an example.

  
if x==2 then 
        return true; 
else 
        return false; 
    end 
end 
  

I am a begginer in MTA scripting, so i have got lots of question, i am here for your help :)

Thanks in advance.

Link to comment

Well, the semi-column is used for ending a sentance of code like:

g.fillRect(0, 0, 100, 100); 

That's Java, but that's atleast how i use them, they also exist in the most other programming languages.

In Lua you won't have to use them, unless it makes it easier for you.

AnyMoreProblemsThenPostHere();

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