Advertisement

RegisterScriptString

Started by April 21, 2007 12:20 AM
0 comments, last by Tonin 17 years, 7 months ago
I feel like a fool. Been trying to sort this out myself to no avail so back I come! Is it necessary to call RegisterScriptString on your engine? The tutorial says "// Register the script string type" but I was not able to find any information on this in the docs. Any guidance would be awesome. Cheers
I'm just starting out myself, but it is my understanding that if you want to use string literals or the "string" data type in a script you need to register some type that acts like a string with the ScriptEngine object before building the script (or registering any types or functions that use the "string" type). The included asCScriptString class seems pretty good for most needs.

Hope that helps a bit,
~Andy

This topic is closed to new replies.

Advertisement