Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gamedivision on September 17, 2016, 09:10:10 PM

Title: convert string to float issue
Post by: gamedivision on September 17, 2016, 09:10:10 PM
i have a string format timer in the form of min,sec,mill sec 00:00:0 like so, i need to be able to convert to a float so i can compare numbers but im getting a format exception with the separators :
how would i get the string value into a float value

thanks
Title: Re: convert string to float issue
Post by: dudebxl on September 18, 2016, 05:03:14 AM
Use get Get String Left/Right and get only the min or sec or whatever and only convert that into float but it is only a quick workaround

I would read this: http://hutonggames.com/playmakerforum/index.php?topic=1711.0
Title: Re: convert string to float issue
Post by: gamedivision on September 18, 2016, 07:03:53 PM
thanks i managed to solve it by removing the formatting in the timer script then reformatting in playmaker