Something like printf in angelscript
is there a way to achieve something like printf("blah %d", var); in angelscript (preferably using bstr)? How can I add numbers into a bstr in the script file? I tried bstr s = ""; s = bstrFormat(game.score); but that didn't work.
AngelScript doesn't support the ellipse operator (...) so a printf function cannot be registered or declared in the script. I have no plans to include support for this operator.
bstrFormat() should work unless you're using a data type for which I haven't implemented support yet. What error are you getting when you use bstrFormat()?
If I get the time tomorrow I'll run a few tests on bstrFormat() to see if I can find a problem.
bstrFormat() should work unless you're using a data type for which I haven't implemented support yet. What error are you getting when you use bstrFormat()?
If I get the time tomorrow I'll run a few tests on bstrFormat() to see if I can find a problem.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement