Jak naprawić błąd cant understand the structure on move: . blad 6 linijka a o to skrypt
variables:
{playerLocation::%player%} = false
{playerTime::%player%} = 0
{playerEarnings::%player%} = 0
on move:
if player is within cuboid (x -613.752, y 61.74395, z -238.302) to (x -608.205, y 69, z-232.338):
if {playerLocation::%player%} is false:
set {playerLocation::%player%} to true
set {playerTime::%player%} to now
send "&aZacząłeś zarabiać pieniądze!" to player
else:
if {playerLocation::%player%} is true:
set {playerLocation::%player%} to false
set {playerEarnings::%player%} to 0
send "&cPrzestałeś zarabiać pieniądze!" to player
every 5 minute:
loop all players:
if {playerLocation::%loop-player%} is true:
set {_timeElapsed} to difference between {playerTime::%loop-player%} and now
set {_minutesElapsed} to floor({_timeElapsed} / 60 seconds)
if {_minutesElapsed} is less than 3:
add 20 to {playerEarnings::%loop-player%}
if {playerEarnings::%loop-player%} >= 100:
execute console command "eco give %loop-player% 100"
send "&aOtrzymałeś 100 zł za 5 minut stania w strefie!" to loop-player
set {playerEarnings::%loop-player%} to 0
else:
set {playerLocation::%loop-player%} to false
set {playerEarnings::%loop-player%} to 0
send "&cPrzestałeś zarabiać pieniądze po 3 minutach stania w miejscu!" to loop-player
Pytanie
dimsongopl 0
Jak naprawić błąd cant understand the structure on move: . blad 6 linijka a o to skrypt
variables: {playerLocation::%player%} = false {playerTime::%player%} = 0 {playerEarnings::%player%} = 0 on move: if player is within cuboid (x -613.752, y 61.74395, z -238.302) to (x -608.205, y 69, z-232.338): if {playerLocation::%player%} is false: set {playerLocation::%player%} to true set {playerTime::%player%} to now send "&aZacząłeś zarabiać pieniądze!" to player else: if {playerLocation::%player%} is true: set {playerLocation::%player%} to false set {playerEarnings::%player%} to 0 send "&cPrzestałeś zarabiać pieniądze!" to player every 5 minute: loop all players: if {playerLocation::%loop-player%} is true: set {_timeElapsed} to difference between {playerTime::%loop-player%} and now set {_minutesElapsed} to floor({_timeElapsed} / 60 seconds) if {_minutesElapsed} is less than 3: add 20 to {playerEarnings::%loop-player%} if {playerEarnings::%loop-player%} >= 100: execute console command "eco give %loop-player% 100" send "&aOtrzymałeś 100 zł za 5 minut stania w strefie!" to loop-player set {playerEarnings::%loop-player%} to 0 else: set {playerLocation::%loop-player%} to false set {playerEarnings::%loop-player%} to 0 send "&cPrzestałeś zarabiać pieniądze po 3 minutach stania w miejscu!" to loop-playerWstawiam skrypt w formatowanie "Kod".
Notatka dodana przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/57971-b%C5%82%C4%85d-w-skrypcie-jeden-jedyny/Udostępnij na innych stronach
1 odpowiedź 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ą.