Raised This Month: $ Target: $400
 0% 

Return vector from forward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
N1ghtmr1
Member
Join Date: Nov 2005
Old 07-06-2006 , 11:02   Return vector from forward
Reply With Quote #1

Hi all.

If i have 2 plugins, pla and plb, and I want to get a vector a[1..n] as a return value from plb calling the function from pla, how would I do?

Right now i've seen that you can pass both int and float as reference, but not string. I've tryed to pass the vector as argument and then edit the values in plb's function but it doesn't seem to work properly. Also return doesn't seem to work with forwards. In code what i wan't to do is:

pla...
{
new vec[n]
get_info_and_fill_vec[n]_from_plb
}

plb..

public getinfo(...)
{
return_vec(somehow)
}

The ugly method would be to pass each element in the vector as &int arguments, but I would like to avoid that since n can change later.
N1ghtmr1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode