Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Concatenating a flex value
Concatenating a flex value
2002-01-08, 4:25 AM #1
Here's the code
Code:
jkStringConcatASCIIString("Mana: "); 
mana=GetInv(player, 14);
jkStringConcatFlex(mana); 

and it outputs this:
Code:
Mana: 400.000000


Here's my question, is there a way to get rid of those zeros? I've tryed jkStringConcatFormattedFlex(mana); and all i get is 0.000000. Please help.
2002-01-08, 5:04 AM #2
The simplest way? Make it an int.

Code:
JKstringconcatasciistring("Mana: ");
JKstringconcatint(Getinv(Player, 10));


------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!