Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expected Array...
#1
Ok, well I'm trying to make a Chaos Gate code for my game...>.> My game is based on .hack//. Anyway, I can't get this code to work. I've never even seen this error before, and I don't know why I'm getting it. It keeps highlighting what is in the bold brackets, and saying "Compile Error:Expected Array"...

Code:
' Chaos Gate attribute
        If [b]Map[/b](GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_CHAOS_GATE Then
        frmChaosGateMenu.Visible = True
        End If

Could someone please help me?
Reply
#2
Code:
' Chaos Gate attribute
        If Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index)).Type = TILE_TYPE_CHAOS_GATE Then
        frmChaosGateMenu.Show = True
        End If

This may dont work either. anyway, i dont think it's "Visible" but "Show". I may be wrong.
Reply
#3
It is "visible = true" the other code is just "frmBlah.Show". I thought the error was in his map array?
Reply
#4
That didn't work, and I think it's Visible...>.> On my other codes when I want a menu to show up I always used "Visible" not "Show".

Quote:It is "visible = true" the other code is just "frmBlah.Show". I thought the error was in his map array?

That is the error. ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)