Incompatible types: cannot convert from
Posted: Mon Dec 20, 2010 8:17 pm
Greetings,
I am trying to write a simple code that is placed in global script and returns a random string.
My first step was to write the following code.
However, this gives me the following error "Incompatible types: cannot convert from 'const * char' to 'char'"
What do I need to do that the code returns "test"?
I am trying to write a simple code that is placed in global script and returns a random string.
My first step was to write the following code.
- Code: Select all
char RandomStringTest()
{
char random="test";
return random;
}
However, this gives me the following error "Incompatible types: cannot convert from 'const * char' to 'char'"
What do I need to do that the code returns "test"?