playMaker

Author Topic: int to "long" variable  (Read 1863 times)

Pawel

  • Junior Playmaker
  • **
  • Posts: 93
int to "long" variable
« on: January 12, 2014, 08:42:19 PM »
I am trying to pass my score as an int variable from Playmaker to a Game Circle  script from amazon. The problem I am running into is that their "scoreValue" variable is set as "long"...
long scoreValue = 0; 

From my reading, it seems that LONG is a type of INT... However, my Send Event action with Method "scoreValue" and INT as a type of variable doesn't seem to pass my values. Since there is no way to use LONG in Playmaker, is there another way to go around it?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: int to "long" variable
« Reply #1 on: January 13, 2014, 06:22:08 AM »
Hi,

 You'll have to parse it as an int. This is a problem indeed but I don't think your score will become a "long" anytime soon, so I think it's ok to parse it as an int.

you'll have to make custom actions for this, using "set property" action will not work.


bye,

 Jean