Hi guys, I'm trying to create a text array to create texts with the same string but different colors. Here's my script:

Code:
 #include <acknex.h>
#include <default.c>

TEXT* textArray[10];

var i = 0;
function main(){
	var tempy = 10;
	while(i<10){
	textArray[i] = txt_create(1,2);
	(textArray[i])->pos_x = 10;
	(textArray[i])->pos_y = tempy;
	((textArray[i])->pstring)[0] = "Some String";
	(textArray[i])->red = random(255);
	(textArray[i])->green = random(255);
	(textArray[i])->blue = random(255);
	(textArray[i])->flags = VISIBLE;
	tempy+=10;
	i++;
}
}


That's my full script. However, all the texts stay the default white. Any ideas?


Bet you don't know where Taiwan is lol.

"The Lord is my light and my salvation..." Psm 27:1