Solved Parsing as integer

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

Barbarx

Active Member
Feb 25, 2017
71
5
0
71
hello, can somebody help me with this? when i try parse as integer it will be <None>
code_language.skript:
            set {_lore::*} to lore of clicked item split at "||"
            loop {_lore::*}:
                if {_lore::%loop-index%} contains "Prodejce":
                    set {_text} to loop-value
                    replace every "&9Prodejce&f: &e" with "" in {_text}
                    set {_jmeno} to {_text}
                else if {_lore::%loop-index%} contains "Cena":
                    if {_lore::%loop-index%} contains "Medak":
                        replace every "&6&lMedak" with "" in {_lore::%loop-index%}
                    else if {_lore::%loop-index%} contains "Zlatak":
                        replace every "&e&lZlatak" with "" in {_lore::%loop-index%}
                    else if {_lore::%loop-index%} contains "Stribrnak":
                        replace every "&7&lStribrnak" with "" in {_lore::%loop-index%}
                    replace every "&9Cena&f: &e" with "" in {_lore::%loop-index%}
                    replace every "x" with "" in {_lore::%loop-index%}
                    replace every " " with "" in {_lore::%loop-index%}
                    set {_cislo} to {_lore::%loop-index%} parsed as integer
i think this {_cislo}.. i tried debug and before it was 3 without spaces etc. and after it was <None>
 
Status
Not open for further replies.