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]Skrypt...


Rekomendowane odpowiedzi

Opublikowano

R

E

K

L

A

M

A

_

_

-

-

--

 

Siemanko!

Mam problem!

Napisałem swój pierwszy skrypt ale nie wiem czemu nie dziala!

Jak przeladuje plugins skrypt to pokazyje 2 error's!

Oto skrypt!

command /tpr:
	trigger:
		if player has permissions "loswy.tpr":
		send "&6&nZostales teleportowany w losowe miejsce na mapie!"
			set {_x} to random integer between {@x_min} and {@x_max}
			set {_y} to 256
			set {_z} to random integer between {@z_min} and {@z_max}
			execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
options:
	x_min: 1000
	x_max: 4000
	z_min: 1000
	z_max: 4000

Prosze o pomoc!

Pozdro!

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano

Teraz pokazuje 10 bledów!


09:46:57 WARN]: There are no aliases defined for the following ids: 160, 161, 162, 163, 164, 174, 175, 422
[09:46:57 WARN]: Empty configuration section! You might want to indent 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. (lostp.sk, line 2: 'trigger:')
[09:46:57 WARN]: Empty configuration section! You might want to indent 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. (lostp.sk, line 3: 'if player has permissions "loswy.tpr":')
[09:46:57 ERROR]: indentation error: expected 1 tab, but found 2 tabs (lostp.sk, line 5: 'set {_x} to random integer between {@x_min} and {@x_max}')
[09:46:57 ERROR]: indentation error: expected 1 tab, but found 2 tabs (lostp.sk, line 6: 'set {_y} to 256')
[09:46:57 ERROR]: indentation error: expected 1 tab, but found 2 tabs (lostp.sk, line 7: 'set {_z} to random integer between {@z_min} and {@z_max}')
[09:46:57 ERROR]: indentation error: expected 1 tab, but found 2 tabs (lostp.sk, line 8: 'execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"')
[09:46:57 ERROR]: 'send "&6&nZostales teleportowany w losowe miejsce na mapie!"' is not an entry (like 'name : value') (lostp.sk, line 4: 'send "&6&nZostales teleportowany w losowe miejsce na mapie!"')
[09:46:57 ERROR]: Unexpected entry 'if player has permissions "loswy.tpr"'. Check whether it's spelled correctly or remove it. (lostp.sk, line 3: 'if player has permissions "loswy.tpr":')
[09:46:57 INFO]: loaded 6 scripts with a total of 11 triggers and 5 commands in 0.17 seconds
[09:46:57 INFO]: [Skript] Encountered 6 errors while reloading the config and all scripts!

To te errory

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano

Trzymaj to na pewno dziala :

options:
	x_min: 1000
	x_max: 4000
	z_min: 1000
	z_max: 4000
command /tpr:
	trigger:
		if player has permissions "loswy.tpr":
			send "&6&nZostales teleportowany w losowe miejsce na mapie!"
			set {_x} to random integer between {@x_min} and {@x_max}
			set {_y} to 256
			set {_z} to random integer between {@z_min} and {@z_max}
			execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"

Oj nie widzialem UP

Za wolno mi sie wlacza MC ;d

zeby sprawdzic

585051449511123978085.jpeg

Opublikowano
options:
x_min: 1000
x_max: 4000
z_min: 1000
z_max: 4000

command /tpr:
<1>trigger:
<2>if player has permissions "loswy.tpr":
>send "&6&nZostales teleportowany w losowe miejsce na mapie!"
>set {_x} to random integer between {@x_min} and {@x_max}
>set {_y} to 256
>set {_z} to random integer between {@z_min} and {@z_max}
>execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"

Łap :)

 

W <> napisałem ci ile ma być tabów.

Opublikowano

Siemka!

Jeszcze jedna prozba moze ktos tam dopisac ze jak ktos wpisze to komende to dostanie speeda II na 10 sekund i goda na 10 sekund?

Pozdro!

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Opublikowano


options:

x_min: 1000

x_max: 4000

z_min: 1000

z_max: 4000

command /tpr:

trigger:

if player has permissions "loswy.tpr":

send "&6&nZostales teleportowany w losowe miejsce na mapie!"

set {_x} to random integer between {@x_min} and {@x_max}

set {_y} to 256

set {_z} to random integer between {@z_min} and {@z_max}

execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"

apply speed 2 to player for 10 seconds

execute console command "/god %player%"

wait 10 seconds

execute console command "/god %player%"

Opublikowano

Jeszcze jedno. Mozna dopisac cos takiego zeby w czasie walki nie mozna bylo uzywac tej komendy /tpr. I zeby wiadomosc wysylalo?

Pozdro!

Posty: 100|200|300|400|500|600|700|800|900|1000 Mission Complete! xD  :P

76561198209779975.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...