Net.WriteNumber
Skip to content
mnscript
bool Net.WriteNumber(number) 

Description ​

Writes a number to the current Network Transfer Message (NTM)

Arguments ​

number - The number to write to the message

Returns ​

bool - True if the data was written

Example ​

msc
using Net;
using System;

// Starts a network message with the protocol 6000, writes the number 10, and sends it to an IP address.

number myProtocol = 6000;

Net.Start(myProtocol);
Net.WriteNumber(10);
Net.SendToAddress("192.168.1.254");