Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Syntax error

    Beginners
    4
    5
    463
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Codemaster201 0
      Codemaster201 0 last edited by

      I have a syntax error on line 7 Column 5 , but I can’t seem to find it. I put both add) and, as the error says, but that still hasn’t fixed the issue. What am I missing?EF716613-4E62-464F-95D2-C5891EE6E48F.jpeg 39B662FE-B745-4890-B07E-F65E30169075.jpeg

      PB____ 2 Replies Last reply Reply Quote 1
      • Skullo
        Skullo last edited by Skullo

        I think you missed a right parentheses the line before (line 6). Maybe you should ckeck setSpriteImage() parameters in the help menu.

        1 Reply Last reply Reply Quote 0
        • vinicity
          vinicity F last edited by

          It’s very hard to see in your screenshot. The Switch has a very handy screenshot function built in; maybe consider using that instead..?

          1 Reply Last reply Reply Quote 0
          • PB____
            PB____ @Codemaster201 0 last edited by

            I'm not sure what the variables say exactly, because of the blur, but I seem to be reading something like this:

            setSpriteImage (young, sally,(spritesheet)
            

            The first thing to notice about this line is that there is one more ( character versus a ). So that looks like a mistake in this case.

            The second thing I'm not sure about. I'm not coding as actively in Fuze anymore at the moment, but according to the documentation on the site, setSpriteImage expects two arguments, not three. So maybe the intended code should look like something like this in stead?

            setSpriteImage (young, sally[spritesheet] )
            

            But I might be off the mark, since it's hard to read the code exactly :)

            1 Reply Last reply Reply Quote 0
            • PB____
              PB____ @Codemaster201 0 last edited by

              Actually it could be that young is a struct in this code, in which case Sally (or whatever the property name) is the sprite. In which case the intended code might possibly be:

                setSpriteImage(young.Sally, spritesheet)
              // in stead of:
              //setSpriteImage(young. Sally,(spritesheet)
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post