Jump to content
Titan Rs

Help with First Script

Recommended Posts

Hi guys. Trying to make my first script by using explv 101 tutorial layout but making a chaos druid script instead.

however i was making my methods but for some reason i cant understand red lines are coming up. I even copied and pasted one of explv to see if it would work and i still got red lines.

any help would be appreciated :)

T7QASkR.png

 

 

  • Like 1
Link to comment
Share on other sites

5 minutes ago, Luke Reading said:

Hi guys. Trying to make my first script by using explv 101 tutorial layout but making a chaos druid script instead.

however i was making my methods but for some reason i cant understand red lines are coming up. I even copied and pasted one of explv to see if it would work and i still got red lines.

any help would be appreciated :)

T7QASkR.png

 

 

Line 1: missing semicolon. Whenever you have a statement, it needs a semicolon. If placing a set of curly brackets after the statement doesn't work, you know it needs a semicolon.

the other ones between '(){' is because you're missing spaces between the '()' and '{'. That's just styling "errors" to make your code look pretty.

The long one; missing a bracket on the left side, right after the return.

Last two lines, they are erroring because you have return true, else, return true. This always returns true, make the second one return false.

Edited by apa
Link to comment
Share on other sites

20 minutes ago, apa said:

Line 1: missing semicolon. Whenever you have a statement, it needs a semicolon. If placing a set of curly brackets after the statement doesn't work, you know it needs a semicolon.

the other ones between '(){' is because you're missing spaces between the '()' and '{'. That's just styling "errors" to make your code look pretty.

The long one; missing a bracket on the left side, right after the return.

Last two lines, they are erroring because you have return true, else, return true. This always returns true, make the second one return false.

EDIT: Found a solution :)

Edited by Luke Reading
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...