playMaker

Author Topic: Call Method return Array of Ints [SOLVED]  (Read 2252 times)

hunz

  • Playmaker Newbie
  • *
  • Posts: 35
Call Method return Array of Ints [SOLVED]
« 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
« Last Edit: June 21, 2016, 04:46:10 AM by hunz »

hunz

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Call Method return Array of Ints
« Reply #1 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.


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Call Method return Array of Ints
« Reply #2 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

hunz

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Call Method return Array of Ints
« Reply #3 on: June 15, 2016, 01:53:02 AM »
Amazing.  I'll send that over right away.  Appreciate it!

hunz

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Call Method return Array of Ints
« Reply #4 on: June 21, 2016, 04:45:00 AM »
This problem was solved with 1.8.2.  Just if anyone else needed to know.