You have to initialize STRING*s before using str_cpy, I think... I have had the engine yell at me similarly when I fail to do so.

So set them all to "" in your main function or a startup function.
Code:
int i;
for(i=0; i<5; i++)
     chatmsgs[i] = "";