Solved What this error means and how I fix it

  • 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.
Feb 24, 2017
191
7
0
foroendertheth.foroactivo.com
2017-08-09_15.42.03.png
 
Your login skript has looped infinitly. IT means you have part of your code that causes the code to repeat itself. Can you post that skript?
ok a seg
[doublepost=1502308109,1502308040][/doublepost]
code_language.skript:
options:
    logo: &9[&bEnder&aTheth&9]
#
command /registrar <text> <text>:
    aliases: /reg, /register
    trigger:
        if {login.now.%player%} is true:
            if {login.regya.%player%} is true:
                send "{@logo}&cYa estas registrado"
            else:
                if arg-1 is arg-2:
                    set {login.contra.%player%} to arg-1
                    delete {login.now.%player%}
                    set {login.regya.%player%} to true
                else:
                    send "{@logo}Tienes que repetir la contraseña"
        else:
            send "{@logo}&cYa te logeaste"

command /login <text>:
    aliases: /log
    trigger:
        if {login.now.%player%} is true:
            if {login.regya.%player%} is true:
                if {login.contra.%player%} is arg-1:
                    send "{@logo}Logeado perfectamente"
                    send "{@logo}Si eres premium utiliza premium"
                    delete {login.now.%player%}
                else:
                    send "{@logo}&cContraseña Incorrecta"
            else:
                send "{@logo}Nesesitas registrarte /reg (contraseña) (repitela)"
        else:
            send "{@logo}ya estas logeado %player%"
on first join:
    set {first.%player%} to true
    wait 10 second
    delete {first.%player%}
    if {premium.%player%} is true:
        send "{@logo}Modo premium"
    else:
        set {login.now.%player%} to true
        if {login.regya.%player%} is true:
            message "{@logo}&7 Logeate&f /login <contraseña>"
            loop 20 times:
                wait 5 seconds
                message "&8[&7----------{@logo}&7----------&8]"
                message "{@logo}&7 Logeate&f /login <contraseña>"
                if {login.now.%player%} isn't set:
                    exit loop
        else:
            message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
            loop 20 times:
                wait 5 seconds
                message "&8[&7----------{@logo}&7----------&8]"
                message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
                if {login.now.%player%} isn't set:
                    exit loop
#
on join:
    wait 1 second
    if {first.%player%} is true:
        stop
    else:
        if {premium.%player%} is true:
            delete {premium.%player%}
            execute console command "/kick %player% &7reconectate mi error"
        else:
            set {login.now.%player%} to true
            if {login.regya.%player%} is true:
                message "{@logo}&7 Logeate&f /login <contraseña>"
                loop 1 times:
                    wait 5 seconds
                    message "&8[&7----------{@logo}&7----------&8]"
                    message "{@logo}&7 Logeate&f /login <contraseña>"
                    if {login.now.%player%} isn't set:
                        exit loop
            else:
                message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
                loop 20 times:
                    wait 5 seconds
                    message "&8[&7----------{@logo}&7----------&8]"
                    message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
                    if {login.now.%player%} isn't set:
                        exit loop

#
on any move:
    if {login.now.%player%} is true:
        teleport the player to {lobby.lobby}
on chat:
    if {login.now.%player%} is true:
        cancel event
on command:
    if "%command%" contains "login":
        stop
    if "%command%" contains "register":
        stop
    if "%command%" contains "reg":
        stop
    if "%command%" contains "log":
        stop
    if {login.now.%player%} is true:
        cancel event
command /unregister <text>:
    permission: admin
    permission message: {@logo}No eres admin
    trigger:
        delete {login.contra.%arg-1%}
        delete {login.regya.%arg-1%}
        send "{@logo} %arg-1% unregistrado"
 
It seems like it may be the on any movement event. do you still get the same error of you take that bit out? (there are other less laggy ways to do the same thing if it is the problem)
 
It seems like it may be the on any movement event. do you still get the same error of you take that bit out? (there are other less laggy ways to do the same thing if it is the problem)
I does not like on any move I use that too on my commands like spawn home and if you move the mause a little cancel because on any move how can i fix that?
 
I does not like on any move I use that too on my commands like spawn home and if you move the mause a little cancel because on any move how can i fix that?
Another way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.
Yeah, my server really hates the on move event tooXD it freaks out every time
 
Another way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.
Yeah, my server really hates the on move event tooXD it freaks out every time
I does not know how summon a armor stand And less invisible And less make The player ride The armor stand
[doublepost=1502309196,1502309120][/doublepost]
Another way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.
Yeah, my server really hates the on move event tooXD it freaks out every time
Can you help me with this ? https://forums.skunity.com/threads/how-i-create-files-for-a-island-level-scores.4903/
 
I does not know how summon a armor stand And less invisible And less make The player ride The armor stand
[doublepost=1502309196,1502309120][/doublepost]
Can you help me with this ? https://forums.skunity.com/threads/how-i-create-files-for-a-island-level-scores.4903/
The files unfortunately I have no experience with:c. However for the armor stand use this. You'll have to incorporate it into your code, but I set it up as a command so I could test it on my server. to remove it after simply look up the effect/expression to remove an entity within a radius of a player~
code_language.skript:
command /test:
    trigger:
        spawn armor stand at player
        add "{Invisible:1b,DisabledSlots:2039583}" to nbt of last spawned armor stand
        make player ride last spawned armor stand
You will need Skstuff for that add to nbt line.
additionally if you want any other nbt tags added to the armor stand use this site to generate them for you it's really great.(ie: invulnerability and stuff like that.) http://haselkern.com/Minecraft-ArmorStand/

**edit just another thought, if you dont want them to be able to stop riding it before they log in, cancel their sneak toggle event:emoji_wink:
 
I goin to close my server :V and i still having 4 months of host.
Im hate whend every think is ok and them a player get op idk how and destroy all. I does not trust no one im the only op.
sometimes a plugin crash or for some reason al player join and the server crash and all the players i get leave like the 90%.
I just goin to have the server for test plugins and help here because I still like coding. if I can progrese them I goin to help other to progrese
 
Try something like this. Never use "on any move" or "every # seconds" when while loop is the best option here. This code is to give you an idea of how you can do something you have trouble with.

code_language.skript:
on join:
    wait 0.5 second
    set {_t} to true
    while {_t} is true:
        if player is online:
            if {var} is not true:
                # do stuff
                teleport player to {location var}
            else:
                set {_t} to false
        else:
            set {_t} to false
        wait 0.3 second
 
Try something like this. Never use "on any move" or "every # seconds" when while loop is the best option here. This code is to give you an idea of how you can do something you have trouble with.

code_language.skript:
on join:
    wait 0.5 second
    set {_t} to true
    while {_t} is true:
        if player is online:
            if {var} is not true:
                # do stuff
                teleport player to {location var}
            else:
                set {_t} to false
        else:
            set {_t} to false
        wait 0.3 second
Thanks ver y helpful
 
Status
Not open for further replies.