🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement