im trying to make a function that uses strcpy to display text on a text actor, but for some reason it refuses to work . So i shoretened it to a minimum, but it still wont work. I've tried every type of function but it's all the same. It seems that strcpy wont work from global script editor to display text.
- 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