Hi,
Global speelveld:Int[8,12]
GeneratePlayField()
Print speelveld[1,1]
Function GeneratePlayField()
Local x:Int
Local y:Int
For y = 1 To 11
For x = 1 To 7
speelveld[x,y] = Rand(4)+1
Next
Next
End Function
Gives me a nice error message: Expressio of type int cannot be indexed..
wtf am i not seeing?
If i declare a global array (or any other var for that matter) i should be able to use it inside procedures?
Please help, and don't RTFM me, because i just can't seem to find it :(
Regards, Michel.
Global speelveld:Int[8,12]
GeneratePlayField()
Print speelveld[1,1]
Function GeneratePlayField()
Local x:Int
Local y:Int
For y = 1 To 11
For x = 1 To 7
speelveld[x,y] = Rand(4)+1
Next
Next
End Function
Gives me a nice error message: Expressio of type int cannot be indexed..
wtf am i not seeing?
If i declare a global array (or any other var for that matter) i should be able to use it inside procedures?
Please help, and don't RTFM me, because i just can't seem to find it :(
Regards, Michel.