skript problem

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

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

titustitus98

Member
Feb 19, 2018
47
0
6
25
skript version: 2.2 dev36c
skript author: bensku
mc version: 1.8

code:

code_language.skript:
every tick: 
    loop {kills::*}:
        add 1 to {_size}
        if {_low.to.high.list::%loop-value%} is not set:
            set {_low.to.high.list::%loop-value%} to loop-index
        else:
            set {_n} to 0
            loop {_size} times:
                set {_n} to {_n}+1
                {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                stop loop
            wait 1 tick
            set {_n} to size of {_low.to.high.list::*}
            loop {_low.to.high.list::*}:
                set {_high.to.low.list::%{_n}%} to loop-value
                set {_n} to {_n}-1
            wait 1 tick
            loop {_high.to.low.list::*}:
                set {_player} to "%loop-value%" parsed as offline player
            set {top1} to "%{_player}% %{kills::%loop-value%}%"
            stop


Description:
but when i use {top1} it returns <none> <none> how can i fix that?
 
Last edited:
Maybe because of the else in line 6 because using your code, noone (except people with the same amount of kills) will trigger the code under line 6
 
Maybe because of the else in line 6 because using your code, noone (except people with the same amount of kills) will trigger the code under line 6
So what you are saying is that if i get a kill with another account it should work?
 
No thats not what im saying. You should take a look at the code and add some debug stuff to see where its wrong
 
Status
Not open for further replies.