Navigation

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

    Strings in an array of structures causing 'unrecognised type' errors

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    2
    168
    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.
    • Mincus
      Mincus F last edited by

      If you create an array of structures with a string, then ask for the value of the string before setting it (bad practice, I know) you get an 'unrecognised type: 4' error.
      The line number of the error also points to the line of the 'EndStruct' and not to where you use the string.

      Following code will generate the error:

      Struct sTest
         String text
      EndStruct
      sTest test[3]
      test2 = test[0].text
      
      pianofire 1 Reply Last reply Reply Quote 1
      • pianofire
        pianofire Fuze Team @Mincus last edited by

        @Mincus Thanks for reporting this I will raise an issue

        1 Reply Last reply Reply Quote 0
        • First post
          Last post