Number Format

  • 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.

GToTheG

Member
Jan 26, 2017
35
0
8
code_language.skript:
command /a:
    trigger:
        set {_bal} to 5200
        set {_1} to the first 3 characters of {_bal}
        set {_2} to the last 2 characters of {_1}
        set {_1} to the first character of {_bal}
        send "%{_1}%,%{_2}%"

Anyone knows why this returns <none>,<none>?
 
{_bal} isn't a string, so you can't get do the string operations on it. Just replace with "5200" (with quotes).
 
Status
Not open for further replies.