Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hariprasadh10792 on March 25, 2015, 01:32:56 PM

Title: Convert String to Int! Issue
Post by: hariprasadh10792 on March 25, 2015, 01:32:56 PM
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.
Title: Re: Convert String to Int! Issue
Post by: jeanfabre on March 25, 2015, 01:53:08 PM
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
Title: Re: Convert String to Int! Issue
Post by: hariprasadh10792 on March 25, 2015, 01:59:44 PM
Im trying to convert a playerprefs string to a local variable int.
Title: Re: Convert String to Int! Issue
Post by: laynardo on February 21, 2016, 05:10:39 PM
was this ever resolved?
Title: Re: Convert String to Int! Issue
Post by: jeanfabre on March 02, 2016, 03: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