1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved divide an function...?

Discussion in 'Skript' started by DoronS, Sep 16, 2017.

Thread Status:
Not open for further replies.
  1. DoronS

    DoronS New Member

    Joined:
    Sep 15, 2017
    Messages:
    9
    Likes Received:
    0
    Hey!
    I want to do a simple CPS test.
    I need to divide the function:
    Code (Skript):
    1. {clicks.%player%}
    by 10.
    how do I do it?

     
  2. Best Answer:
    Post #4 by ShaneBee, Sep 16, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Code (Skript):
    1. set {clicks::%player%} to {clicks::%player%} / 10
     
    #2 ShaneBee, Sep 16, 2017
    Last edited by a moderator: Sep 18, 2017
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Thanks for the help! but i wanted to DIVIDE not to deduct.
    like 45:10=4.5
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    The division symbol is /
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Thx!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...