okayy so i created a function
{
chatline[5][100]=chatline[4][100];
chatline[4][100]=chatline[3][100];
chatline[3][100]=chatline[2][100];
chatline[2][100]=chatline[1][100];
chatline[1][100]=chatline[0][100];
chatline[0][100]=message;
}
there is the inners of it, when i send it i send it this way (from client to server)
{
NetPutByte(STRING_);
NetPutString(message);
NetSend(0);
}
and i recieve it like this
if ( msg_flag = 1 ){
INSTRUCTIONS_ = NetGetByte ( );
switch ( INSTRUCTIONS_ ){
case 'S':
char message[100]; NetGetString(message, 100); AddChatMessage(message);
break;
but when i put it into practice.. each line that has been sent says the same thing
for example..
:
:
: hey
:
: how are you
: how are you
it changes all the lines above it.. and i dont understand why.. can someone please help?
thankyou
Nathan