Navigation

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

    Trying to figure out error MSG

    Help
    5
    13
    416
    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.
    • Martin
      Martin Fuze Team last edited by

      Also, valueNo and suitNo don't exist at the top level, only within a function later down so as far as the program goes, it knows nothing about them.

      1 Reply Last reply Reply Quote 2
      • Dave
        Dave Fuze Team last edited by Dave

        It looks to me like you're using valueNo and suitNo in your print statements when you want to be using the custom properties you've assigned to the sprites already:

        In your getPack() function, you have:

             sprite.value = values [valueNo] [1]
             sprite.suit = suits [suitNo]
             sprite.imageNo = imageNo
        

        As @Martin pointed out, the valueNo and suitNo variables are local to the functions that create them. But, since you're using them to assign information to the custom properties sprite.value and sprite.suit, then storing them in the cards array, you should use those properties in your print statements:

        drawText(30,150, 80, black, sprite.value) // I've added the missing commas Martin pointed out
        drawText(40,150, 80, black, sprite.suit)
        

        I thought at first these would have to be cards[i].value and cards[i].suit but since beforehand you write sprite = cards[i], this should be correct.

        1 Reply Last reply Reply Quote 2
        • K
          kendog400 F last edited by

          Working perfectly now.....Thanks again !

          1 Reply Last reply Reply Quote 1
          • Dave
            Dave Fuze Team last edited by

            Excellent! Very glad to hear it :)

            1 Reply Last reply Reply Quote 0
            • K
              kendog400 F last edited by

              I've been trying to frend you (Dave) but it says frend not found.
              Is your # 5130-4176-1902 ?

              1 Reply Last reply Reply Quote 0
              • K
                kendog400 F last edited by

                It seems that if you friend waldron your friend screens turns grey,
                so now I want to friend fuze team members to stay safe....

                pianofire 1 Reply Last reply Reply Quote 0
                • pianofire
                  pianofire Fuze Team @kendog400 last edited by

                  @kendog400 That should have been fixed

                  1 Reply Last reply Reply Quote 0
                  • K
                    kendog400 F last edited by

                    Do you know Dave (Fuze Team) friend code ?

                    pianofire 1 Reply Last reply Reply Quote 0
                    • pianofire
                      pianofire Fuze Team @kendog400 last edited by

                      @kendog400 He doesn't seem to have published it.

                      1 Reply Last reply Reply Quote 0
                      • Martin
                        Martin Fuze Team last edited by

                        As @pianofire says the issue with Waldron’s shares has been found and fixed. If you’ve tried again today and it’s not working please do let us know.

                        1 Reply Last reply Reply Quote 1
                        • waldron
                          waldron F last edited by

                          5139 4176 1902 thats daves, i shouldnt have any issues now been clear for 6 days!!!!!

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