net.WriteLong
From GMod Wiki
| Function | |
| Syntax |
net.WriteLong( Number ) Where is this used? |
| Description: | |
| Sends a number through the net library. | |
| Returns: | Nil |
| Part of Library: | net |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Net.WriteLong]Net.WriteLong [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sends the number 5424 to the client. |
|---|---|
| Used on | |
| Code | net.Start("Test") --Unique name accessed by the recipent's net.WriteLong(5424) net.Send(Entity(1)) |
| Output | Entity 1 will recieve the number 5424 this can be read using net.Recieve |
Additional Notes
- A max of 64kb's can be sent at one time
- WriteLong will send any numbers, including decimals - use the other net functions to send your data format.
- Use net.WriteFloat to send decimal numbers
- Consult the net library for more details