Jump to content

Displaying/formatting items(int) gained per hour(long)?


t0r3

Recommended Posts

Hey :) 

If I want to display how many fish I've caught per hour, how do I go about that?

When displaying how long the script has been running I format the long type to a String.

I tried formatting the long type (how long the script has been running for) to an Integer, - returning an integer. This so that I can divide the fishCount int variable with another int variable.. But it doesn't seem to work :o 

I do realize I might have to learn some more java for this though hahah..

Any help appreciated :)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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