net/WriteUInt

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=WriteUInt |Parent=net |Description=Appends an unsigned integer with the specified number of bits to the current net message. |Realm=Shared |IsClass=No }} {{...")
 
(Added int size name reference)
Line 14: Line 14:
 
|type=number
 
|type=number
 
|name=numberOfBits
 
|name=numberOfBits
|desc=The size of the integer to be sent, in bits. Acceptable values range from 1 to 32. Other values will cause undefined behaviour.
+
|desc=The size of the integer to be sent, in bits. Acceptable values range from 1 to 32. 1 = bit, 4 = nibble, 8 = byte, 16 = short, 32 = long.
 
}}
 
}}

Revision as of 19:38, 16 June 2015

 net.WriteUInt( )

Description

Appends an unsigned integer with the specified number of bits to the current net message.

Arguments

number unsignedInteger

The unsigned integer to be sent.

Arguments

number numberOfBits

The size of the integer to be sent, in bits. Acceptable values range from 1 to 32. 1 = bit, 4 = nibble, 8 = byte, 16 = short, 32 = long.
Personal tools
Navigation