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 / any one know whats wrong with this bin scratching my head for 2 days

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 6th Aug 2003 00:03
scratching my head for 2 days abuot this

I have a client and server thingy running
i know they are connected cus in one of them i got a player list and the client and server are both listed in it.

This was in the server
do
if net message exists()>0
get net message
print "Net message is ",net message string$()
endif
loop

this was in the client

do
if downkey()=1 then send net message string 0,"/qswm" : gosub message
loop

wats up
>>TerraByte. Putting the Byte back into Terragramming<<
http://www.darkdayssoftware.20m.com/logo394.gif[/img]
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 6th Aug 2003 00:04
oh and this is on the 127.0.0.1

>>TerraByte. Putting the Byte back into Terragramming<<
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 6th Aug 2003 00:29
i am guessing that by the time you get the message the print has run off the screen...

try to put

Set Cursor 0,0

after do in the client...

Visual Programming Studio ORANGE
Replacement IDE for Dark Basic Professional...
(Will Be Availeable When This is Removed)
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Aug 2003 00:33
You need to do the GET NET MESSAGE before the IF NET MESSAGE EXISTS()
Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 6th Aug 2003 00:39
(it only prints is the net message is recieved)

and using colons to seperate code is a bad habit to get into, DBP sometimes doesnt like it either.

And since i know nothing about multiplayer at the moment, thats about all i can give ya

Sticking feathers up your butt doesn't make you a chicken.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 6th Aug 2003 02:40

WOOT
PROGRAM COMPLEATE!

>>TerraByte. Putting the Byte back into Terragramming<<

Login to post a reply

Server time is: 2026-07-22 10:04:31
Your offset time is: 2026-07-22 10:04:31