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.

Newcomers DBPro Corner / Chatroom Problem - BlueGUI

Author
Message
CrayZXP
17
Years of Service
User Offline
Joined: 1st Dec 2006
Location: Obviously not behind you...
Posted: 8th Jul 2007 04:44
(I don't know if this is the right forum...)
I'm trying to create a chatroom with BlueGUI and when I run it, connecting is no problem, but showing the message as i send it is something i can't figure out. Please help. I'm a noob when it comes to multiplayer commands.

Screen shot attached...
If needed I'll attach the code...

Just then, in the blink of an eye......I ignored you.

Attachments

Login to view attachments
Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 8th Jul 2007 21:47
Okay, I'm no expert on multiplayer commands either, but hopefully I can be of some help:

Basically, 'SEND NET MESSAGE STRING playernumber,string$' will send a string accross the network to the specified player [calling 'SEND NET MESSAGE STRING 0,string$' will send the message to all players except for the computer the program is running on], while 'get net message' and 'net message string$()' will return the next message in the message que (to check if this exists, call 'if net message exist()=1')

Here's a basic loop to get all messages sent from other players:


Remember that when *you* send a message (the user clicks the send button), you need do two things:
1. Send that message using 'SEND NET MESSAGE STRING 0,string$'
2. Print that message, since your own message will not get sent to yourself.

Hope that helps,

-Xol

CrayZXP
17
Years of Service
User Offline
Joined: 1st Dec 2006
Location: Obviously not behind you...
Posted: 8th Jul 2007 22:25
Oh, I forgot about that...whoops. Thanks for your help.

Just then, in the blink of an eye......I ignored you.

Login to post a reply

Server time is: 2024-11-25 15:25:27
Your offset time is: 2024-11-25 15:25:27