The problem seems to be something else, lines are being echo'd fine for me when I do:
PHP Code:
temp.messageSize = 3;
for(temp.i = 0; temp.i < temp.messageSize; temp.i++){
new GuiMLTextCtrl("Message_" @ temp.i){
useownprofile = true;
profile.modal = false;
profile.fonttype = "Arial";
profile.fontsize = 20;
profile.fontcolor = temp.textFormat ? "black" : "white";
profile.textshadow = true;
profile.shadowcolor = "black";
allowedtags = (temp.fromstaff ? {"img", "b", "font", "center"} : {"b", "img"});
alpha = temp.textFormat ? 0.3 : 1.0;
visible = true;
resize(50, temp.y, 100, 20);
text = "asdf asdf asdf asdf asdf asdf asdf asdf ";
}
echo(@("Message_" @ temp.i).getlines());
temp.chat_height = temp.lines <= 0 ? 25 : temp.lines * 25;
temp.y += temp.chat_height;
}
Renders 2 "asdf" per line, echo's:
Quote:
"asdf asdf","asdf asdf","asdf asdf","asdf asdf"
"asdf asdf","asdf asdf","asdf asdf","asdf asdf"
"asdf asdf","asdf asdf","asdf asdf","asdf asdf"
|