Jump to content

Script: Displaying an INT in a message


Recommended Posts

Has anyone done something like this?

 

Inside a script there's an integer that changes dynamically.

After the INT changes a message appears stating that "It is now 3" for instance.

 

But how is this possible without maybe using a debug notification?

Link to comment
Share on other sites

In the message text use the % formatting command to show no decimals, like;

 

Scrapped %.0f junk items into %.0f components
Int iJunk = 9
Int iComponents = 999
pMyMessage.Show((iJunk as Float), (iComponents as Float))

Scrapped 9 junk items into 999 components

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...