So,
STRING* sTextString1 = "Welcome\n";
STRING* sTextString2 = "This is";
STRING* sTextString3 = " a ";
STRING* sTextString4 = "Text";
STRING* sTextString5 = "\nand this another line!";
TEXT* tInfo =
{
layer = 25;
pos_x = 300;
pos_y = 300;
string (sTextString1,
sTextString2,
sTextString3,
sTextString4,
sTextString5); // create an array of 5 string pointers
flags = SHOW;
}
Now you can access the strings with
tInfo.pstring[0] // (0-4) e.g
str_cpy(tInfo.pstring[0],"your text");
Time we got proper arrays me thinks.
Last edited by pararealist; 03/15/09 21:50.