I created a function that takes three strings and puts them on screen using TEXT. Everything else in my project works except the function that has the strings as parameters. I'm not sure what I'm doing wrong. Help would be appreciated.

I'm doing a choose your own adventure type popup screen and I need three different strings to be used in the function every time its called because it is better to create the panel once and put different messages in it each time it is called then to do a hundred bazillion panels that look the same with different messages in them.

example:

function win_choice(STRING* s1, STRING* s2, STRING* s3)
{
....
TEXT* Text1 = {
...
string (s1);
...
}
TEXT* Text2 = {
...
string (s2);
...
}
//and another text is used for the third string
}

I keep getting errors related to this I do not understand.

"< string ^ s1);>
TEST.C 5:2 (): String -s1"

TEST.C is the name of my lite-c file. I am not being shown the line number the error is on. What's in the quotes is all the error info I'm getting. I'm not sure what the engine is trying to tell me with that little bit of info except that something is wrong with the way the strings are being used.

I've used other variable types in functions as parameters before and I figure either I'm using the STRING incorrectly as a parameter or something else in the function is messed up.

I have tried doing the function header differently after trying to find tutorials or examples of strings being used as parameters in a function and couldn't find anything.

function win_choice(STRING s1, STRING s2, STRING s3)

function win_choice(STRING *s1, STRING *s2, STRING *s3)

But shouldn't it be the way I have it:
function win_choice(STRING* s1, STRING* s2, STRING* s3)

Thanks for any help.

edit: When I have called the function it has been like this,

win_choice(a1,a2,a3);

the strings called a1,a2,a3 have already been declared like so
STRING* a1 = "blah blah blah";

all my data types have been declared at the top of the script before doing any of the functions and panels and everything else.

Last edited by darthsmurf; 02/15/12 20:12.