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.

Dark GDK / DarkNet String problem

Author
Message
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 20th Mar 2010 17:05
I can't send/get strings in DarkNet,
I put this in the Cube World Server project
This is the code:


It gives as error:
error C3861: 'mnGetString': identifier not found

Can someone post a send and recieve string example?
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 20th Mar 2010 21:05 Edited at: 20th Mar 2010 21:31
use mnGetStringSTD instead.

Or mnGetStringC for chars

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 24th Mar 2010 23:47
I tryed to use StringSTD and it don't show up any errors.
But the server doesn't get it right.
Could someone post a small example how the correct way of sending/recieving StringSTD would like?
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 26th Mar 2010 13:00
This is my "communications.h" from my project. It sends strings only. It can use either TCP or UDP and can have a server and client on the same program. But isnt perfect, might help you though.

Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 26th Mar 2010 20:41
This is what I needed.
Not the whole part of it, but now sending a string works.
Thanks for the help!

Login to post a reply

Server time is: 2024-11-20 01:46:01
Your offset time is: 2024-11-20 01:46:01