Page 1 of 1

Array Question.

PostPosted: Thu Apr 28, 2011 10:47 pm
by amanuob
Uhmm hello every one I would like some help on this problem of mine .. XD...
can anyone please tell if I'm doing this right..?
Code: Select all
int ary[10][10][10];
ary[1][1][2]=10;

sprintf(txt.text," %d ",ary[1][1][2]);

some how it doesnt print?..

Re: Array Question.

PostPosted: Thu Apr 28, 2011 11:07 pm
by skydereign
It should work, and it does for me. Do you have anything else setting textNumber or text? And just to make sure, it is a text actor with a valid font, and initial text?

Re: Array Question.

PostPosted: Thu Apr 28, 2011 11:25 pm
by Game A Gogo
You can't set text directly in global actions, because it gets run right before text are assigned to your actor (Remember you have to input a string in order to get the text showing)