Jump to content

A simple question !


Recommended Posts

  • Moderators
example script ? to get it ..

On the client-side:

Start the script by storing the current money in a global variable and create a timer that will call the check function.

The check function will get the money again and check if it is the same than the global variable or not.

If it's not the same then you just can get the difference between the two values and display it on the screen.

Don't forget to update the global variable with the new current money value.

On the server-side:

Same process but this time use an element data instead a global.

Nothing hard for you I guess.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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