🎉 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!

global expression

Started by
0 comments, last by WitchLord 18 years, 3 months ago
this cannot be compiled. how to do it correctly ? Error : Function calls are not allowed in global expressions bits OFLAG_BSP = bits(1024); [Edited by - iram on March 22, 2006 4:16:30 AM]
Advertisement
This must be a bug in AngelScript, as type conversions should be allowed. I'll have to verify this.

I believe you could just assign the value 1024 to the variable directly without the explicit conversion.

Otherwise you could also write the value in hexadecimal, which has the type bits by default.

bits OFLAG_BSP = 1024;...or...bits OFLAG_BSP = 0x400;


Regards,
Andreas

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