ok this doesnt work:
Code:
#include <acknex.h>
#include <default.c>

TEXT* txt_log = {
	pos_x = 20; pos_y = 20;
	layer = 100;
	strings = 40;
	flags = visible;
}

var i = 1;


function fnc_logUpdate(STRING* localString){
	while(i < txt_log.strings-1){ //most recent at bottom
		str_cpy((txt_log.pstring)[i],(txt_log.pstring)[i+1]);
		i+=1;
	}
	if(localString){
		str_cpy((txt_log.pstring)[txt_log.strings-1],localString);
	}else{
		str_cpy((txt_log.pstring)[0],"");
	}
}

function main()
{
	//use default opts
	video_gamma = 100; 
	master_vol = 100;
	video_screen = 1;
	video_mode = 9;

fnc_logUpdate("MY STRING");

}

heeeeelpp eek