What it does
AddNetworkMessageInteger writes to a Multiplayer object: it adds rather than reads. It takes iMsgID (an integer) and value (an integer), and returns nothing. iMsgID is the id of a Msg object, obtained elsewhere in the Multiplayer family.
Syntax
AddNetworkMessageInteger(iMsgID integer, value integer)Parameters
| Name | Type |
|---|---|
| iMsgID | integer |
| value | integer |
Every form returns
nothing
Example · generated
AddNetworkMessageInteger(1, 1)DO Sync()LOOPAddNetworkMessageInteger is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.