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
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.











