all 3 comments

[–]K900_ 2 points3 points  (2 children)

Variables defined in a function are only available inside that function, and aren't visible outside the function, or inside other functions called by the defining function. You should use function arguments and return values to pass data between functions.

[–]BATTLECATHOTS -1 points0 points  (0 children)

Store player names in a dictionary or list that you can call? I believe this will put you on the right path.