NET MESSAGE INTEGER This command will return an integer value from the current net message.
Syntax
    Return Integer=NET MESSAGE INTEGER()
Returns
This command will return an integer value from the current net message
Description
The net message must be of the integer type or the command will fail. You can determine the type using the NET MESSAGE TYPE command.
Example Code
    rem Network game can communicate numbers and strings

    while inkey$()<>"x"

    cls

    print "HANDLE NET MESSAGES (Press X To Continue)"

    if mouseclick()=1

    print "SENDING..."

    send net message integer 0,mousex()

    endif

    rem Receive Part (from all other players)

    get net message

    if net message exists()=1 then print "RECEIVING..."

    while net message exists()=1

    if net message type()=1 then ReturnInteger=net message integer()

    get net message

    endwhile

    endwhile
See also
MULTIPLAYER Commands Menu Index