Jump to content
  • Advertisement
Sign in to follow this  

an question about CScriptArray

This topic is 2813 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
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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!