Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hunz on June 15, 2016, 12:46:14 AM

Title: Call Method return Array of Ints [SOLVED]
Post by: hunz on June 15, 2016, 12:46:14 AM
Hey,

We have a database method we need to call which takes an int parameter and returns and array of ints.

public int[] GetResult(int index)
{
    ...
    return result;
}
 
At the moment we are getting an error in playmakers CallMethod object saying "result is the wrong type. it should be of type :System.Int32[]"

The array in playmaker is set to be an INT array.

Any help would be great.

Hans. :o
Title: Re: Call Method return Array of Ints
Post by: hunz on June 15, 2016, 01:32:04 AM
Oh,  We are using 1.8.1 and we tried changing the return type to

public HutongGames.PlayMaker.FsmArray GetResult(int index)
{
    ...
    return result;
}

Attached is the results from that.

Title: Re: Call Method return Array of Ints
Post by: Alex Chouls on June 15, 2016, 01:36:01 AM
This will be fixed in 1.8.2. Sorry for the inconvenience!

If you would like to test the 1.8.2 beta, please email me with:
- Your Playmaker invoice number
- A google/gmail address to send the beta group invite to

Thanks!
Alex
Title: Re: Call Method return Array of Ints
Post by: hunz on June 15, 2016, 01:53:02 AM
Amazing.  I'll send that over right away.  Appreciate it!
Title: Re: Call Method return Array of Ints
Post by: hunz on June 21, 2016, 04:45:00 AM
This problem was solved with 1.8.2.  Just if anyone else needed to know.