playMaker

Author Topic: Convert String to Int! Issue  (Read 1293 times)

hariprasadh10792

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Convert String to Int! Issue
« on: March 25, 2015, 10:32:56 AM »
Hi,

I am trying to convert a string to int. Everytime I use that action I get a Format Exception error: Input string was not in the correct format.

Is this an issue with the action or Is there a mistake in my project?

Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14493
  • Official Playmaker Support
    • View Profile
Re: Convert String to Int! Issue
« Reply #1 on: March 25, 2015, 10:53:08 AM »
Hi,

 This is an issue with the format property of that action that is not compliant.

 Can you tell me what is the content of the string format and what can of convertion you expect to perform?


 Bye,

 Jean

hariprasadh10792

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Convert String to Int! Issue
« Reply #2 on: March 25, 2015, 10:59:44 AM »
Im trying to convert a playerprefs string to a local variable int.

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Convert String to Int! Issue
« Reply #3 on: February 21, 2016, 03:10:39 PM »
was this ever resolved?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14493
  • Official Playmaker Support
    • View Profile
Re: Convert String to Int! Issue
« Reply #4 on: March 02, 2016, 01:55:57 AM »
Hi,

 for this to be solved, I need to know the format you used, and the original string. Then I can try to reproduce.

To learn more about string format rules:

https://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx

Bye,

 Jean