Advertisement

How to cast value in script ?

Started by April 05, 2008 11:11 PM
1 comment, last by zopenge 16 years, 7 months ago
Example : AS script : int k = (int)1.0f; But I compile it with a error, it tell me except '(' Error Message. how to resolve this ? thanks
There are two alternatives in AngelScript:

int k = int(1.0f);


or

int k = cast<int>(1.0f);


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
Oh, thanks so much ~~ it puzzle me a long time :))

This topic is closed to new replies.

Advertisement