Returning the correct type

Blitz3D Forums/Blitz3D Programming/Returning the correct type

Ok this works...

Function FindPlayer.player(Name$)
	For P.player = Each player
		If P\name = Name Then
			Return P.player
			Exit
		EndIf
	Next
	
End Function


This does what I need to find a player in my main client code using a function in a seperate bb.

Man, I love these forums...

Thanks again for the help!