Mirage Source
Expected Array... - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Expected Array... (/showthread.php?tid=1582)



Expected Array... - Daemonblade777 - 27-02-2008

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?


Re: Expected Array... - Yoshiko - 27-02-2008

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.


Re: Expected Array... - Stomach Pulser - 27-02-2008

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


Re: Expected Array... - Daemonblade777 - 27-02-2008

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. ^^