Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / another network question

Author
Message
waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 16th Sep 2002 12:26
when using
SEND NET MESSAGE STRING 0,"hello there"
which will broadcast to all players in the game,
what will this call return....
reply=Net Message To()

will reply be set to 0 for a broadcast message,
or will reply still be set to the Player_ID for
the curent player on this computer?
waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 17th Sep 2002 03:08
ok, i checked this one myself...
reply=net message to()
will return the correct player ID the message was
received by, wether the message was private or broadcast.
if the message was private, i guess the other players would not get the message. I just thought it kinda odd to provide
a player id number as a return from a function if the id number will always be the same.

Login to post a reply

Server time is: 2024-04-26 17:35:08
Your offset time is: 2024-04-26 17:35:08