mplay_message_player()

This is the other functions of the receive messages combo. This does a similar thing as mplay_message_id() and mplay_message_value(), but this one instead returns the player real ID, not the string containing its name. This can be useful for some internal coding, but for the real usefulness of this: chat rooms, you need the next function which returns the string and not the real number.

You can for example do this with this function:

 

Example

if (mplay_message_receive(0)) //observe the use of this function

{

switch (mplay_message_id()) //switch the id of the message

{

  case 1: mplay_message_send(mplay_message_player(),3,"I recived the message!!!";

}

}

 

gml_josea Revision #1