I would like to rec...
 
Notifications
Clear all

I would like to recall the number of million units in the leaderboard.

5 Posts
2 Users
0 Reactions
586 Views
(@everush)
Posts: 7
Active Member
Topic starter
 

I would like to recall the number of million units in the leaderboard.
Well Come to the converter continues to fly because this is an error, then the error number turned out to debug than the normal number. 3.503996E + 07
Is there a way?

 
Posted : 19/06/2015 4:06 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

Sorry, can you be a bit more clear? Didn't understand your question or issue.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 19/06/2015 6:13 pm
(@everush)
Posts: 7
Active Member
Topic starter
 

Sorry. English is not familiar

"ValueInt" in the number of over 10 million readers board

System.Convert.ToInt64 (score.formattedValue);

FormatException: Input string was not in the correct format.

This error message is called.

 
Posted : 22/06/2015 5:15 am
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

Have you tried to print score.formattedValue to see what's the value? If it's a valid number on MySql then you should be able to convert it back on C# too as you're doing.

The field CB_LeaderBoard_User.ValueInt is currently of type INT(11) on MySql, if you need more numbers you could change it to BIGINT(20) and convert it to long with ToInt64. Also the current code in Leaderboard.LoadScores and Leaderboard.LoadScoresByUser is passing float values to Score constructor, in your specific case you may want to use double instead of float so that it can handle 64-bit values.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 22/06/2015 12:32 pm
(@everush)
Posts: 7
Active Member
Topic starter
 

I think only the side web. MySQL has failed to realize the idea.
have a nice day~

 
Posted : 22/06/2015 12:45 pm
Share: