Quote:
print_message(id, const msg[])
{
message_begin(id ? MSG_ONE : MSG_ALL, gmsgSayText, _, id)
write_byte(id)
write_string(msg)
message_end()
}
|
So for sending message to all players I need to pass 0 as 1st param and actual message as 2nd.
Actually I don't understand this write_byte() function. It says write bytes to message. In C char is 1 byte. So how these bytes are calculated here for particular message which need to be sent to client.