Skocz do zawartości
  • 0

mam problem


Usunięty#26004
 Udostępnij

Pytanie

co jest z tym skryptem 

wyskakuje mi 1 blad

 

options:
    x-min: -900
    x-max: 900
    z-min: -900
    z-max: 900
on right click:
    if clicked block is stone button:
        if block behind clicked block is sponge:
            set {_x} to random integer between {@x-min} and {@x-max}
            set {_y} to 99
            set {_z} to random integer between {@z-min} and {@z-max}
            set {_location} to location at {_x}, {_y}, {_z}
            set {randomtp.god.%player%} to true
            teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")
            stop
on damage:
    if victim is player:
        if {randomtp.god.%victim%} is true:
            cancel event
            delete {randomtp.god.%victim%}
            stop

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
5 godzin temu, kacpereklubi10 napisał:

co jest z tym skryptem 

wyskakuje mi 1 blad

 

options:
    x-min: -900
    x-max: 900
    z-min: -900
    z-max: 900
on right click:
    if clicked block is stone button:
        if block behind clicked block is sponge:
            set {_x} to random integer between {@x-min} and {@x-max}
            set {_y} to 99
            set {_z} to random integer between {@z-min} and {@z-max}
            set {_location} to location at {_x}, {_y}, {_z}
            set {randomtp.god.%player%} to true
            teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")
            stop
on damage:
    if victim is player:
        if {randomtp.god.%victim%} is true:
            cancel event
            delete {randomtp.god.%victim%}
            stop

jaki błąd ci wyskakuje ?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 godziny temu, thesochac napisał:

jaki błąd ci wyskakuje ?

'getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")' is not an entity type (rtp.sk, line 14: teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "elo")')

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, Glitchtrap napisał:

Miałeś ją w innym skrypcie? Jeżeli tak, to nie dodawaj po raz kolejny, przecież już miałeś tą funkcję. Dodatkowo pokaż jak ona wygląda.

function getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="world") :: location:
    while {_return} is not set:
        set {_x} to random integer between {_xmin} and {_xmax}
        set {_z} to random integer between {_zmin} and {_zmax}
        set {_loc} to highest block at location at {_x}, 0, {_z} in world ({_world} parsed as world)
        if block at {_loc} != lava or water:
            add 1 to y-loc of {_loc}
            if (block at {_loc}) and (block above block at {_loc}) != lava:
                set {_return} to {_loc}
    return {_return}


options:
    x-min: -900
    x-max: 900
    z-min: -900
    z-max: 900
on right click:
    if clicked block is stone button:
        if block behind clicked block is sponge:
            set {_x} to random integer between {@x-min} and {@x-max}
            set {_y} to 99
            set {_z} to random integer between {@z-min} and {@z-max}
            set {_location} to location at {_x}, {_y}, {_z}
            set {randomtp.god.%player%} to true
            teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")
            stop
on damage:
    if victim is player:
        if {randomtp.god.%victim%} is true:
            cancel event
            delete {randomtp.god.%victim%}
            stop 

 

 

 

skrypt

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
17 godzin temu, kacpereklubi10 napisał:

            set {_x} to random integer between {@x-min} and {@x-max}
            set {_y} to 99
            set {_z} to random integer between {@z-min} and {@z-max}
            set {_location} to location at {_x}, {_y}, {_z}

to to chyba jest ci troszkę zbędne jak masz tą funkcję,

jaką masz wersję skript? 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
4 godziny temu, CoFFeIN04 napisał:

to to chyba jest ci troszkę zbędne jak masz tą funkcję,

jaką masz wersję skript? 

nie pamietam juz ale chyba 2.2

 wywalilem to co napisales i dalej mam blad:

'getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="sektor1") :: location' is not a text (rtp.sk, line 1: function getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="sektor1") :: location:')
> [15:12:24 ERROR]: 'getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")' is not an entity type (rtp.sk, line 22: teleport player to getRandomLoc(-10000, 10000, -10000, 10000, "sektor1")')
Edytowane przez kacpereklubi10
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

czemu?

  1. Pobierz tego skripta Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
  2. Zapisz swoje skrypty na swój komputer
  3. Usuń folder "Skript"
  4. Zrestartuj serwer
  5. Wgraj swoje skrypty
Edytowane przez CoFFeIN04
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
41 minut temu, CoFFeIN04 napisał:

 

ok

 

[16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! [Skript] Severe Error:
> [16:12:28 ERROR]: #!#! Could not load rtp.sk
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Something went horribly wrong with Skript.
> [16:12:28 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
> [16:12:28 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
> [16:12:28 ERROR]: #!#! Here is full list of them:
> [16:12:28 ERROR]: #!#! skRayFall v1.9.12 (http://sk.rayfall.net/) WildSkript v1.6.1 (http://www.dzikoysk.net/) SkQuery v3.21.4
> [16:12:28 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
> [16:12:28 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
> [16:12:28 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
> [16:12:28 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
> [16:12:28 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
> [16:12:28 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Stack trace:
> [16:12:28 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
> [16:12:28 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:262)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1837)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1804)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1552)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:501)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:839)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1568)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1498)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1525)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1525)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1525)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1525)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1564)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1525)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.Condition.parse(Condition.java:80)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1072)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:45)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:146)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:650)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$4(ScriptLoader.java:401)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader$$Lambda$207.0000000091DFADD0.run(Unknown Source)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:420)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:464)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.ScriptLoader.reloadScript(ScriptLoader.java:976)
> [16:12:28 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:185)
> [16:12:28 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
> [16:12:28 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146)
> [16:12:28 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1189)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
> [16:12:28 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> [16:12:28 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
> [16:12:28 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
> [16:12:28 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Version Information:
> [16:12:28 ERROR]: #!#! Skript: 2.5.3 (latest)
> [16:12:28 ERROR]: #!#! Flavor: github-matocolotoe-1.8
> [16:12:28 ERROR]: #!#! Date: 2020-12-22
> [16:12:28 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
> [16:12:28 ERROR]: #!#! Minecraft: 1.8.8
> [16:12:28 ERROR]: #!#! Java: 1.8.0_232 (Eclipse OpenJ9 VM openj9-0.17.0)
> [16:12:28 ERROR]: #!#! OS: Linux amd64 4.15.0-72-generic
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Server platform: Paper
> [16:12:28 ERROR]: #!#! Current node: while {_return} is not set: (rtp.sk, line 2)
> [16:12:28 ERROR]: #!#! Current item: null
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Thread: Server thread
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! Language: english
> [16:12:28 ERROR]: #!#! Link parse mode: DISABLED
> [16:12:28 ERROR]: #!#!
> [16:12:28 ERROR]: #!#! End of Error.
> [16:12:28 ERROR]: #!#!

 

dalej 
Glicz

Łączę posty, wstawiam logi w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
28 minut temu, CoFFeIN04 napisał:

najprawdopodobniej to wina SkQuery. Tu Ci daję linka do pobrania SkQuery na 1.8.8 -> Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! <-

dalej ten sam 

> [16:22:35 ERROR]: #!#!
> [16:22:35 ERROR]: #!#! Something went horribly wrong with Skript.
> [16:22:35 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
> [16:22:35 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
> [16:22:35 ERROR]: #!#! Here is full list of them:
> [16:22:35 ERROR]: #!#! skRayFall v1.9.12 (http://sk.rayfall.net/) WildSkript v1.6.1 (http://www.dzikoysk.net/) SkQuery v4.1.0
> [16:22:35 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
> [16:22:35 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
> [16:22:35 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
> [16:22:35 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
> [16:22:35 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
> [16:22:35 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...