Passing clonename to a global function
Posted: Thu Apr 19, 2007 1:52 am
I have a function called lengthOfString.
If you pass it a string it will return the strings length.
lengthOfString( "testing123" );
returns a 10.
However if you attempt to pass it clonename...
textOutput.textNumber = lengthOfString( clonename );
...you will get a "Cast loses const qualifier" error.
How do I pass the current actors clonename to a global function?
If you pass it a string it will return the strings length.
lengthOfString( "testing123" );
returns a 10.
However if you attempt to pass it clonename...
textOutput.textNumber = lengthOfString( clonename );
...you will get a "Cast loses const qualifier" error.
How do I pass the current actors clonename to a global function?