| Mirage Source http://miragesource.net/forums/ |
|
| Expected Array... http://miragesource.net/forums/viewtopic.php?f=201&t=3427 |
Page 1 of 1 |
| Author: | Daemonblade777 [ Wed Feb 27, 2008 5:31 pm ] |
| Post subject: | Expected Array... |
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? |
|
| Author: | Yoshiko [ Wed Feb 27, 2008 9:54 pm ] |
| Post subject: | Re: Expected Array... |
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. |
|
| Author: | Stomach Pulser [ Wed Feb 27, 2008 11:16 pm ] |
| Post subject: | Re: Expected Array... |
It is "visible = true" the other code is just "frmBlah.Show". I thought the error was in his map array? |
|
| Author: | Daemonblade777 [ Wed Feb 27, 2008 11:17 pm ] |
| Post subject: | Re: Expected Array... |
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. ^^ |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|