Balance

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
D

Deleted member 239

Hey,

Is it possible to display the money with points?

Like 25.000 instead of 25000

Balance: %balance of player%


Best regards
H0peLess
 
set the %balance of player% to any variables, then split it up. And check if the variables size more than 3. then add a "." there you go
 
Can u make an example?
code_language.skript:
set {_Split::*} to "%player's balance%" split at ""
set {_s} to 0
loop {_Split::*}:
    if {_End} is not set:
        set {_End} to "%loop-value%"
    else:
        set {_End} to "%{_End}%%loop-value%"
    add 1 to {_s}
    if {_s} is 3:
        set {_End} to "%{_End}%."
        set {_s} to 0

# i think its wrong. i have no brain yet. i just woke up
[doublepost=1502746209,1502744028][/doublepost]so... There is some theard that you want.


https://forums.skunity.com/threads/1-skript-challenge-number-format.247/
 
Status
Not open for further replies.