here is my function, it takes 2 arguements: font and string. It takes the string and splits it up so it doesnt run off the screen. Anyway, I'm getting a error on line 22 saying "exspected '(', but got ',' "
string textBoxLine[255];
void TextBox(int fontFace, string myStr) {
int lineNum;
int count;
int x;
string word;
string str1;
string strTemp;
lineNum = 0;
count = TokenCount(myStr, " ");
x = 0;
int bounds = imageshell(0, 0, imageWidth(screen),
(FontHeight(fontFace) * 3) + imageHeight(5) +
imageHeight(5) + 6, screen);
int textBounds = imageShell(5, 5, imageWidth(bounds) - 10, (fontHeight(fontFace) * 3), bounds);
while(x < count && x < 255) {
word = GetToken(str, x);
strTemp = str1 + " " + word;
if(textWidth(strTemp) > imageWidth(textbounds) {
textBoxLine[lineNum] = str1;
}
else {
x++;
lineNum++;
}
}
rectFill(0, 0, imageWidth(bounds), imageHeight(bounds), rgb(0,0,200), bounds);
for(x = 0; x <= lineNum; x++) {
printString(0, (fontHeight(fontFace) * x), textBounds, fontFace, textBoxLine[x]);
}
}