Global function problem
Posted: Sun Aug 19, 2012 7:00 pm
I made a global function to load text from an array, and put in into the game, but i doesnt work as intended.
Function:
I execute the function in another actor with
But when I start the game, and the funtion is executed, the text of PM_Level1_Text has changed, but to the value of null.
Does someone know, what i am doing wrong, or should i upload the whole game?
Function:
- Code: Select all
void PM_Level_Reload()
{
strcpy(PM_Level1_Text.text, Level_Text[3]);
strcpy(PM_Level2_Text.text, Level_Text[2]);
strcpy(PM_Level3_Text.text, Level_Text[1]);
strcpy(PM_Level4_Text.text, Level_Text[0]);
}
I execute the function in another actor with
- Code: Select all
PM_Level_Reload();
But when I start the game, and the funtion is executed, the text of PM_Level1_Text has changed, but to the value of null.
Does someone know, what i am doing wrong, or should i upload the whole game?