#problem with skript
1 messages · Page 1 of 1 (latest)
i have 130 errors
XD
WHATS WRONG
I WILL FIX IT
hm
same problem
what?
u want translate?
command /restart <text>:
trigger:
send title "&4&lZa 60 sekund odbedzie sie restart" with subtitle "&4Z powodu: &c%arg-1%" to all players
wait 1 second
this?
command /restart <text>:
trigger:
send title "&4&lZa 60 sekund odbedzie sie restart" with subtitle "&4Z powodu: &c%arg-1%" to all players
wait 1 second
loop 60 times:
send action bar "&cRestart odbędzie się za %61 - loop-value% sekund" to all players
wait 1 second
stop server
wait a second works
2nd off it's related to indents once he fixes indents it will be much less errors hopefully
if they fix the indents it will be no errors
thanks
it'll still be bad code tho
no errors
dont care its working XD
can't ask for people to make things perfectly the first time around
fair
that's like asking me to use algorithms despite the fact I don't take the time to even learn them
sauvero as a rule of thumb, whenever you find yourself copy-pasting code, see if you can use a loop instead
or use a function if applicable to code
true, if you know how to use those
there's a gamerule for that
otherwise use the on spawn of phantoms event and cancel
nope just need to cancel the event
one requires it to spawn the other just ends stops it entirely
1 will call multiple times
another will call only for phantoms
@pallid prism AND
is there option
to make command
like /stoprestart
to stop this?
you could do that yes
you'd need to add something like
if {stop-restart} is true:
stop
``` in the loop
than then just set that variable to true in the /stoprestart command
@pallid prism i have one problem
command /restart <text>:
permission: sauvero.restart
permission message: co ty kurwo probujesz
trigger:
set {stop-restart} to false
send title "&4&lZa 60 sekund odbedzie sie restart" with subtitle "&4Z powodu: &c%arg-1%" to all players for 5 seconds
wait 1 second
loop 60 times:
if {stop-restart} is true:
stop
else:
send action bar "&cRestart odbędzie się za %61 - loop-value% sekund" to all players
wait 1 second
stop server
your indentation is wrong
move 4th, 2nd, and 1st last line one more way to the right
In skript whenever you see a : next line needs to be indented one space/tab more than the line prior
im reading
Good then it should resolve your issue
The full article?
and i dont know whats wrong
please stop @ing me
Read