Passing arrays to functions..

Blitz3D Forums/Blitz3D Beginners Area/Passing arrays to functions..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need to pass an array to a function but can't quite figure out how to do it. The below code won't work, I get an error down by the function declaration saying it expects a ')':

[CODE]

Dim Walk(6)
For x = 0 To 5
Walk(x) = LoadImage("walk_"+x+".bmp")
Next

If something..
Render_This(Walk(6),64,64)
EndIf

Function Render_This(Image(6),X#,Y#)
; code..
[/CODE]

Any code gurus around to show me what's what? :)