Jump to content


Photo

39dll buffer two not receiving data properly!


  • Please log in to reply
4 replies to this topic

#1 killerheath

killerheath

    GMC Member

  • GMC Member
  • 209 posts
  • Version:GM8

Posted 12 April 2012 - 06:32 AM

Ive made two threads in c++
Thread1:
if(server::bufferEncrypt)
{
	bufferencrypt(server::bufferPassword,0);
}
int messageId = readbyte(0);
if(messageId!=0)
    server::print("BUFFER0 ["+server::doubleToString(messageId)+"]", game::c_magenta);
Thread2:
if(server::bufferEncrypt)
{
	bufferencrypt(server::bufferPassword,1);
}
int messageId = readbyte(1);
if(messageId!=0)
    server::print("BUFFER1 ["+server::doubleToString(messageId)+"]", game::c_magenta);
And heres what i send from the gm client:
clearbuffer(1)
writebyte(1,1)
scr_encryptbuffer(1);
sendmessage(global.socket, "", 0, 1);

I want the ouput in c++ to be this:
BUFFER1 [1]
But instead it doesnt read the second buffer at all!?

What am i doing wrong, this is my first attempt at using a second buffer :P

Is there an alternative to creative another server to send out a different set of bytes, that one "readbyte" will not receive but another will, im not sure if this is what a buffer is :)

Edited by killerheath, 12 April 2012 - 07:27 AM.

  • 0

#2 killerheath

killerheath

    GMC Member

  • GMC Member
  • 209 posts
  • Version:GM8

Posted 12 April 2012 - 06:35 AM

--

Edited by killerheath, 12 April 2012 - 06:39 AM.

  • 0

#3 graves23

graves23

    Artist Solo Queue

  • New Member
  • 35 posts
  • Version:GM8

Posted 12 April 2012 - 07:12 AM

How should we know C++ man ?
These forums meant for GAME MAKER!!!!!!!!!
  • 1

#4 AlexTM

AlexTM

    GMC Member?

  • GMC Member
  • 1422 posts
  • Version:GM8

Posted 12 April 2012 - 07:23 AM

<destroyed>

Edited by A!ex, 12 April 2012 - 07:24 AM.

  • 0

#5 killerheath

killerheath

    GMC Member

  • GMC Member
  • 209 posts
  • Version:GM8

Posted 12 April 2012 - 07:23 AM

How should we know C++ man ?
These forums meant for GAME MAKER!!!!!!!!!

Haha alex ^^ -.-

39dll is the same in c++ and gamemaker, im not asking how to code in c++ im asking how to control buffers in 39dll. :)

Edited by killerheath, 12 April 2012 - 07:25 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users