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.

Author
Message
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 02:40
Im making a multiplayer game and I know how to send and recieve strings. I have a code to change the player object but when I do so i need to send a string which can be used to tell the other person to go to a label in the program. Does anybody know how I can make this string and read it?
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 15th Apr 2005 02:42
All i know is this

Quote: "SEND NET MESSAGE STRING
This command will send a message containing a string to the specified player. The Player Number must be
an integer value and an existing player in the net game. A Player Number of zero will send the message to
all players except you.

SYNTAX
SEND NET MESSAGE STRING Player Number, String
"
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 02:49
yea I got that like i said i know how to send strings is making it im not sure on
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 15th Apr 2005 02:50
To read it use

monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 02:52
I dont think you understand what I mean. I need to know how to make a string that when read sends the program to a certain label. dont know why I didnt put that in the first place lol
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 15th Apr 2005 02:57
No idea then sorry
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 03:04
Anybody?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2005 03:22
I think I know what your meaning, would something like this do it
this is not real code

if get net message = "do this" then jump do this

do this:

end

check if string is what you want the go do it.

In Space No One can Hear You Scream! (When your comm Line is cut?)
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 03:29
No you have to read the string then do the jump to this bit its like

net message string pc$
read pc$

sorta thing
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2005 03:37
ok so it would be,

net message string pc$
read pc$
if pc$="the string I am looking for" then jump lable

this any nearer what youi are think.

In Space No One can Hear You Scream! (When your comm Line is cut?)
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 03:40
But its writing the string and the reading of it that I cant do eg. what goes where it says the string im looking for?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2005 03:50
So you are looking for something that will let you write in a string and then send it to the other player who program then jumps to that lable, and the player who recived it A)can see or B) not see it.

In Space No One can Hear You Scream! (When your comm Line is cut?)
monkeyboy
19
Years of Service
User Offline
Joined: 24th Oct 2004
Location: England
Posted: 15th Apr 2005 03:56
u got it right but i dont get what u mean about seeing it
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2005 04:45
There this bit of code I am trying to find the keystate number for backspace key then the backspace part will work right.



see what you think.

In Space No One can Hear You Scream! (When your comm Line is cut?)
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2005 05:38
better way is this in code base

http://www.thegamecreators.com/?m=codebase_view&i=2081539f68a91af0b661490af1c6e402

show how to transmit data and other things.

In Space No One can Hear You Scream! (When your comm Line is cut?)

Login to post a reply

Server time is: 2024-09-23 17:34:02
Your offset time is: 2024-09-23 17:34:02