Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.39 KB | None | 0 0
  1.     Public Function FindPlayer(ByVal PlayerName As String) As Boolean
  2.         Dim SearchOutcome As Boolean
  3.  
  4.         For i = 0 To mPlayerList.Count - 1
  5.             If mPlayerList(i).Name = PlayerName Then
  6.                 SearchOutcome = True
  7.                 Exit For
  8.             Else : SearchOutcome = False
  9.             End If
  10.         Next i
  11.         Return SearchOutcome
  12.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement