Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]Własny skrypt na TNT by MojDuzyMozg


Ronx

Rekomendowane odpowiedzi

Opublikowano
R
E
K
L
A
M
A
#| Skrypt By MojDuzyMozg
#| Zabraniam: zmieniania w kodzie!
#| Wszelkie prawa zastrzeżone!
#| Strona www.mojduzymozg.cba.pl
#|
command /wyl:
description: Wylaczanie TNT.
usage: /wyl
permission: blocktnt.use
permission message: Nie masz uprawnien do uzywania tej komendy!
executable by: player
trigger:
send "TNT zostanie wylaczone za:"
wait 1 second
send "<aqua>3"
wait 1 second
send "<aqua>2"
wait 1 second
send "<aqua>1"
wait 1 second
on place tnt:
player don't have permissions "blocktnt.tnt":
cancel event
end "Niestety nie mozesz stawiac TNT."
command /tnt on:
description: Wlaczanie TNT.
usage: /tnt on
permission: blocktnt.use
permission message: Nie masz uprawnien do uzywania tej komendy!
executable by: player
trigger:
on place tnt:
player don't have permissions "blocktnt.tnt":
cancel event
send "Mozesz stawiac TNT."
Oto błędy wywalone przez Consolke:
[iNFO] [skript] Reloading the config and all scripts...
[iNFO] Loaded a total of 10458 english aliases
[WARNING] There are no aliases defined for the following ids: 171
[sERWER] indentation error: expected 1 tab, but found 4 spaces (blocktnt.sk, line 6: 'usage: /wyl')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 11: 'send "TNT zostanie wylaczone za:"')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 12: 'wait 1 second')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 13: 'send "<aqua>3"')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 14: 'wait 1 second')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 15: 'send "<aqua>2"')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 16: 'wait 1 second')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 17: 'send "<aqua>1"')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 18: 'wait 1 second')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 19: 'on place tnt:')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blockt
nt.sk, line 20: 'player don't have permissions "blocktnt.tnt":')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 21: 'cancel event')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 22: 'end "Niestety nie mozesz stawiac TNT."')
[WARNING] Empty configuration section! You might want to indent one ormore of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blocktnt.sk, line 10: 'trigger:')
[sERWER] indentation error: expected 1 tab, but found 4 spaces (blocktnt.sk, line 24: 'description: Wlaczanie TNT.')
[sERWER indentation error: expected 1 tab, but found 4 spaces (blocktnt.sk, line 25: 'usage: /tnt on')
[sERWER] indentation error: expected 2 tabs, but found '->____' [-> = tab, _ = space, ? = other whitespace] (blocktnt.sk, line 30: 'on place tnt:')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 31: 'player don't have permissions "blocktnt.tnt":')
[sERWER] indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 32: 'cancel event')
[sERWER indentation error: expected 2 tabs, but found 8 spaces (blocktnt.sk, line 33: 'send "Mozesz stawiac TNT."')
[iNFO] loaded 4 scripts with a total of 1 trigger and 4 commands in 0.11 seconds
[iNFO] [skript] Encountered 19 errors while reloading the config and all scripts!

 

 

Chcesz pomoc w skrypcie?

Pisz i dzwon!

Skype: ronx2011

Opublikowano


command /tnt <text>:

description: Wylaczanie TNT.

usage: /wyl

permission: blocktnt.use

permission message: Nie masz uprawnien do uzywania tej komendy!

executable by: player

trigger:

arg is "off":

send "TNT zostanie wylaczone za:"

wait 1 second

send "<aqua>3"

wait 1 second

send "<aqua>2"

wait 1 second

send "<aqua>1"

wait 1 second

on place tnt:

player don't have permissions "blocktnt.tnt":

cancel event

send "Niestety nie mozesz stawiac TNT."

arg is "on":

on place tnt:

player don't have permissions "blocktnt.tnt":

cancel event

send "Mozesz stawiac TNT."

Opublikowano

Znowy bledy:

 

[iNFO] [skript] Checking for the latest version of Skript...

[WARNING] [skript] Empty configuration section! You might want to inden
t one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blocktnt.sk, line 23: 'player don't have permissions "blocktnt.tnt":')
[sERWER] [skript] Unexpected entry 'arg is "on"'. Check whether it's spelled correctly or remove it. (blocktnt.sk, line 26: 'arg is "on":')
[sERWER] [skript] can't understand this condition: 'on place tnt' (blocktnt.sk, line 22: 'on place tnt:')
[sERWER] [skript] Unexpected entry 'permission msg'. Check whether it's
spelled correctly or remove it. (event.sk, line 55: 'permission msg: Nie masz uprawnien by to uzywac')
[sERWER] [skript] Can't understand this condition/effect: loop 100 times (event.sk, line 64: 'loop 100 times')
[sERWER] [skript] Can't understand this condition/effect: time 1 tick (event.sk, line 66: 'time 1 tick')
[iNFO] [skript] loaded 5 scripts with a total of 2 triggers and 5 commands in 0.31 seconds
[iNFO] [skript] Skript finished loading!
Kod:
#| Skrypt By MojDuzyMozg
#| Zabraniam: zmieniania w kodzie!
#| Wszelkie prawa zastrzeżone!
#| Strona www.mojduzymozg.cba.pl
#|
command /tnt <text>:
description: Wylaczanie/Wlaczanie TNT.
usage: /tnt <on/off>
permission: blocktnt.use
permission message: Nie masz uprawnien do uzywania tej komendy!
executable by: player
trigger:
arg is "off":
send "TNT zostanie wylaczone za:"
wait 1 second
send "<aqua>3"
wait 1 second
send "<aqua>2"
wait 1 second
send "<aqua>1"
wait 1 second
on place tnt:
player don't have permissions "blocktnt.tnt":
cancel event
send "Niestety nie mozesz stawiac TNT."
arg is "on":
on place tnt:
player have permissions "blocktnt.tnt":
cancel event
send "Mozesz stawiac TNT."

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...