an question about CScriptArray
in script, i wirte:
class test : MyInfe
{
int a;
int b;
array<any> temp;
test( int a_a, int a_b ){ this.a = a_a; this.b = a_b; temp.resize(2); temp[0].store(this.a); temp[1].store(this.b); }
array<any>@ ReturnTemp( ){ return @temp; }
}
but build error.
array<any>@ cannot to be used as return type?
thansk all.
class test : MyInfe
{
int a;
int b;
array<any> temp;
test( int a_a, int a_b ){ this.a = a_a; this.b = a_b; temp.resize(2); temp[0].store(this.a); temp[1].store(this.b); }
array<any>@ ReturnTemp( ){ return @temp; }
}
but build error.
array<any>@ cannot to be used as return type?
thansk all.
What are the compiler messages you get? You did register the message callback function with SetMessageCallback, didn't you?
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 looks like a bug in AS. I'll take a closer look at it.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Thanks for reporting this. I've fixed the bug in SVN revision 709.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Man, I wish I could debug at a quarter of your speed. You always manage to add a revision before I can even read the problem!
-Jawshttp://uploading.com/files/eff2c24d/TGEpre.zip/
:)
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