mplay_message_send_guaranteed(player,id,val)

player = the target player to send the message, you can use either it’s string identifier or it’s number identifier. remember the player functions described before. Use 0 to send the message to everyone.

id = the id number for the message, it can be any real number.

val = the data to be sent within the message.

 

Example

//key press event

x+=4

mplay_message_send_guaranteed(0,011,x)

//Send a message to everyone, containing the current x, with the id 011

//Is a good idea to make the ids have a meaning, I usually use Ids like:

//011: 0--a nice number, 1--the player who's sending the message

//1--a sub-id number that represents to me x

 

Works exactly the same way as mplay_message_send(player,id,val), the only difference is that the message is guaranteed to be received, however, this is slow so it's not recommended for continual high speed data.

 

gml_josea Revision #1