im trying to make a function that uses strcpy to display text on a text actor, but for some reason it refuses to work

- Code: Select all
void say()
{
strcpy(txt.text, "Hello");
}
and
- Code: Select all
char *say()
{
strcpy(txt.text, "hello");
return NULL;
}
and other things.
Can someone tell me the right syntax for this, i've read all topics containing "strcpy" but no luck.
TIA