• Advertisement
Sign in to follow this  

an question about CScriptArray

This topic is 2694 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
What are the compiler messages you get? You did register the message callback function with SetMessageCallback, didn't you?

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement