-
If I have an Array of 1..10, 1..20
and this Array simbolizes the location of a player on the board how can i retrive the slot the player is right now.
What I do know how to do is to follow the player from the beginnig and saving his location to two different variables.
10x David
-
-
I'm assuming that this array is declared as boolean??
Code:
Dim i As Byte, j As Byte, Found As Boolean
i = 1
While Found = False
For j= 1 To 20
If PlayerIsHere(i,j) = True Then
Found = True
Exit For
End If
Next J
If Found = False Then i = i +1
Wend
MsgBox "Player is at cell " &i &"," &"j"
Any Help
-
how on earth did you understand the question!!??
:)
(No Offense Dave)
-
Do a lot of work with arrays
-
10x alot
and sorry english is only a third language for me, so id dont make myself clear enough