mplay_player_name(numb)

numb = this arguments tells what’s the placer you want to retrieve it’s string name.

 

This functions will return in the form of an string the name of the target player.  This function works only after calling mplay_player_find(). With the number returned by that function you can specify what player you want to retrieve it’s name.

 

Example

myname = mplay_player_name(0);

 

But it can be useful for example, store all the names in an array, so, a good example can be:

 

Example

//get how many players are in the session

players = mplay_session_find()

//start loop

for (i=0;i<=players;i+=1){

name[i] = mplay_player_name(i)

}

 

The above just stores how many players were found and then starts a loop to quickly store everything into the correct arrays, so, you want the name of the player 0? Just retrieve what’s inside name[0].

 

gml_josea Revision #1