![]() |
Array - Printable Version +- Mirage Engine (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: Array (/showthread.php?tid=879) |
Array - Boo - 17-04-2007 Can someone help me, whats an array? I've tried to rip over Arrows but when I click Run, it highlights 'Map' and says Expected Array... If x >= 0 And x = 0 And y - Spodi - 17-04-2007 Take this for example: Code: Dim i(1 to 3) As Integer Code: Dim i1 as integer Exact same code. Except for with arrays, you can perform bulk operations. Code: dim i(1 to 10000) as long Now try doing THAT without arrays. :lol: - Boo - 17-04-2007 alright thankyou, i'll try and fix my bug ![]() - Matt - 18-04-2007 If you're trying to rip the ranged weapons system from ES, you truly are an idiot. There is a tut floating around for this, by me, using the ES system. If it's not on the forums, it IS on Robin's and Cruel's back up of them. So ask them. - Da Undead - 19-04-2007 :x, well can u link me? :p - Rian - 20-04-2007 Try searching the forums, they're around someone. I don't have much time to look myself right now, I'm at work ![]() - JokeofWeek - 20-04-2007 If you're on the client, Map isn't an array :lol: - Rian - 20-04-2007 It is in Elysium though, I think. - JokeofWeek - 20-04-2007 Sonire Wrote:It is in Elysium though, I think. Exactly, which is why he's getting this error. On Elysium, Map is an Array, but not on Mirage Source, thus the error :wink: - Da Undead - 20-04-2007 ;( oh well, deleted the whole thing from the source... But i searched forums and couldnt find any arrow/bow tuts :\ - Rian - 20-04-2007 Don't look for the tut, look for the Tutorial Database hosted by Robin and Cruel - Da Undead - 20-04-2007 oh hmm k - JokeofWeek - 20-04-2007 Da Undead Wrote:oh hmm k You know, you could've just changed the line to : Code: If Map.Tile(x, y).Type = TILE_TYPE_BLOCKED Then - Da Undead - 20-04-2007 gah tolate >.> xD |