function receive_chatmsg(var sender, STRING* msg)
{
TEXT* entity_text = NULL; //stores the TEXT pointer of the player entity
STRING* save_string = "#100"; //stores the msg string, because it's only 1 frame available
str_cpy(save_string,msg);
str_cpy(strChat0, strChat1);
str_cpy(strChat1, strChat2);
str_cpy(strChat2, strChat3);
str_cpy(strChat3, strChat4);
str_cpy(strChat4, strChat5);
str_cpy(strChat5, strChat6);
str_cpy(strChat6, strChat7);
str_cpy(strChat7, strChat8);
str_cpy(strChat8, strChat9);
str_cpy(strChat9, save_string);
}