Message Read

* Predefined buffer is fnv_message (IN FNs)

if fn_get_receive_list()=Socket // if only one socket to receive messages, skip this script.
{
 switch(fn_get_message_id())
 {
     case 0: // Message id 0, the common variables.
         //message id == 0
         reals=read_byte(fnv_message)
         break;
     case 1: // Message id 1, the common variables string. #1
         //message id == 1
         strings=read_string(fnv_message, read_ushort(fnv_message))
         break;
     case 2: // Message id 2, the common variables string. #2
         //message id == 1
         strings=read_string_v2(fnv_message)
         break;
  ........
 }
}