Mam problem z tym skryptem, ponieważ kiedy reloaduje skrypty to mam taki error:
[CHAT] The expression 'argument' can only be used within a command
[Render thread/INFO]: [CHAT] Line: execute console command "say %arg 1%"
[Render thread/INFO]: [CHAT]
[Render thread/INFO]: [CHAT] Loaded 1 script with a total of 1 trigger and 1 command in 0.01 seconds
[Render thread/INFO]: [CHAT] [Skript] Encountered 1 error while reloading all scripts! (10ms)
A skrypt jest taki:
command /zarządzanie [<player>]:
trigger:
set {_gui} to a new chest inventory with 3 row with name "Zarządzanie"
set slot 13 of {_gui} to emerald
open {_gui} to player
on inventory click:
if name of event-inventory is "Zarządzanie":
if index of event-slot = 13:
execute console command "ban %arg 1%"
cancel event
Pytanie
Crabi1 0
Mam problem z tym skryptem, ponieważ kiedy reloaduje skrypty to mam taki error:
[CHAT] The expression 'argument' can only be used within a command
[Render thread/INFO]: [CHAT] Line: execute console command "say %arg 1%"
[Render thread/INFO]: [CHAT]
[Render thread/INFO]: [CHAT] Loaded 1 script with a total of 1 trigger and 1 command in 0.01 seconds
[Render thread/INFO]: [CHAT] [Skript] Encountered 1 error while reloading all scripts! (10ms)
A skrypt jest taki:
command /zarządzanie [<player>]:
trigger:
set {_gui} to a new chest inventory with 3 row with name "Zarządzanie"
set slot 13 of {_gui} to emerald
open {_gui} to player
on inventory click:
if name of event-inventory is "Zarządzanie":
if index of event-slot = 13:
execute console command "ban %arg 1%"
cancel event
Dopiero się uczę pisać skrypty!
Prosze o szybką pomoc!
Edytowane przez Crabi1Odnośnik do komentarza
https://skript.pl/temat/52340-execute-console-command-nie-dzia%C5%82a-poprawnie/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.