Changing texts from the Global Code

Hi! I'm trying to change texts from inside the Global Code, but nothing is happening.
I put it in the Global Code:
But when I go to game mode, text object is empty.
I put it in the Global Code:
- Code: Select all
char stagename[] = "Stage 1 - Bay Area";
sprintf(stage.text, "%s", stagename);
But when I go to game mode, text object is empty.