mplay_message_receive(player)

player = the player from which you want to receive the message. You can use either its string Id or its real ID. I suggest using 0 to receive any message from any player.

 

Example

mplay_message_receive(player);

 

Remember the messages queue? This function makes GM receive the next message in the queue, and then GM stores its value, Id and player who came from the message into the GM memory. With that info you can execute the other functions to retrieve that data from GM memory.  This function can’t be used alone, so, an example of using it will be explained later in the rest of the functions.

 

gml_josea Revision #1