|
mplay_message_count(player) |
|
player = Should be either a player real ID or a string ID. Use 0 for all players.
This function return how many messages are in the queue, you can specify a player to only take into account the messages sent by that player. You can add this to our messages example to test if there’s any message before attempting to receive one, but this is not necessary:
Example
The above example first checks if there’s any message before trying to receive any.
gml_josea – Revision #1 |