Bf read.ReadLong

From GMod Wiki

Jump to: navigation, search
Function
Syntax bf_read:ReadLong( )
Description:
Read a long from the usermessage (0 - 4294967295)
Returns: Integer
In Object: Bf_read
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Bf read.ReadLong]Bf read.ReadLong [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the incoming long number from an usermessage called SendLong
Used onNewerClient.png
Code
 
local function ReadLong(msg)
   local long = msg:ReadLong() -- reads the long number
   print(long)
end
usermessage.Hook("SendLong", ReadLong)
 
OutputA long(a bigger float) is printed in console


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox