Skocz do zawartości
  • 0

Zmienne ( variables: )


#Aperture
 Udostępnij

Pytanie

witam,

mam problem. otóż mam:

variables:


{puls.%player%} = 0
{reanime.%player%} = false

później mam event:

on death:

później jeszcze jeden. i tu zaczynają się schody.

nie chce w instrukcjach sczytywać zmiennych.

od razu powiem iż nie mogę określić zmiennych drugi raz :/

logi:

[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 15: command/ra [<text&gt] [<player&gt]:')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 16: trigger:')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 17: if arg1 is 'info':')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 18: if arg2 is not set:')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 20: if arg1 is 'use':')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 21: if arg2 is set:')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 22: is {puls.%arg2%} is not 0:')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 23: if player hold redstone named '&1krew':')
[16:46:19] [server thread/WARN]: [skript] 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. (reanime.sk, line 27: if arg1 is 'kup':')
[16:46:19] [server thread/ERROR]: [skript] '%player%' is not an entity type (reanime.sk, line 5: send 'na tym serwerze dziala skrypt Reanime, dodajacy mozliwosc reanimowania gracza. Więcej informacji pod /ra info' to %player%')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'command/ra [<text&gt] [<player&gt]' (reanime.sk, line 15: command/ra [<text&gt] [<player&gt]:')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'trigger' (reanime.sk, line 16: trigger:')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if arg1 is 'info'' (reanime.sk, line 17: if arg1 is 'info':')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if arg2 is not set' (reanime.sk, line 18: if arg2 is not set:')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 19: send 'Reanime to skrypt pozwalajacy na reanimacje gracza za pomocą krwi (przedmiotu) do 5 sekund od smierci gracza. Reanimowany gracz zostaje teleportowany do miejsca smierci.' to %player%')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if arg1 is 'use'' (reanime.sk, line 20: if arg1 is 'use':')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if arg2 is set' (reanime.sk, line 21: if arg2 is set:')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'is {puls.%arg2%} is not 0' (reanime.sk, line 22: is {puls.%arg2%} is not 0:')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if player hold redstone named '&1krew'' (reanime.sk, line 23: if player hold redstone named '&1krew':')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 24: set {reanime.%arg2%} to true')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 25: remowe 1 redstone named '&1krew' from player inventory')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 26: send 'reanomowaA?eA? gracza!'')
[16:46:19] [server thread/ERROR]: [skript] can't understand this event: 'if arg1 is 'kup'' (reanime.sk, line 27: if arg1 is 'kup':')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 28: give 1 redstone named '&1krew' to player')
[16:46:19] [server thread/ERROR]: [skript] invalid line - all code has to be put into triggers (reanime.sk, line 29: remove 5 from player account')

logi dzięki użytkownikowi 

Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! za co bardzo mu dziękuję.

Odnośnik do komentarza
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

proszę :D

variables:
{puls.%player%} = 0
{reanime.%player%} = false
on join:
send 'na tym serwerze dziala skrypt Reanime, dodajacy mozliwosc reanimowania gracza. Więcej informacji pod /ra info' to %player%
on death:
set {_loc} to location of player
set {puls.%player%} to 5
loop 5 times:
wait 1 real second
add -1 to {puls.%player%}
on respawn:
if {reanime.%player%} is true:
teleport player to {_loc}
command/ra [<text&gt] [<player&gt]:
trigger:
if arg1 is 'info':
if arg2 is not set:
send 'Reanime to skrypt pozwalajacy na reanimacje gracza za pomocą krwi (przedmiotu) do 5 sekund od smierci gracza. Reanimowany gracz zostaje teleportowany do miejsca smierci.' to %player%
if arg1 is 'use':
if arg2 is set:
is {puls.%arg2%} is not 0:
if player hold redstone named '&1krew':
set {reanime.%arg2%} to true
remowe 1 redstone named '&1krew' from player inventory
send 'reanomowałeś gracza!'
if arg1 is 'kup':
give 1 redstone named '&1krew' to player
remove 5 from player account

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@up

Proszę:

variables:	{puls.%player%} = 0	{reanime.%player%} = false#on join:	send 'na tym serwerze dziala skrypt Reanime, dodajacy mozliwosc reanimowania gracza. Więcej informacji pod /ra info' to %player%#on death:	set {_loc} to location of player	set {puls.%player%} to 5	loop 5 times:		wait 1 real second		add -1 to {puls.%player%}		on respawn:		if {reanime.%player%} is true:			teleport player to {_loc}#command/ra [<text&gt] [<player&gt]:	trigger:		if arg1 is 'info':			if arg2 is not set:				send 'Reanime to skrypt pozwalajacy na reanimacje gracza za pomocą krwi (przedmiotu) do 5 sekund od smierci gracza. Reanimowany gracz zostaje teleportowany do miejsca smierci.' to %player%				if arg1 is 'use':					if arg2 is set:						is {puls.%arg2%} is not 0:						if player hold redstone named '&1krew':							set {reanime.%arg2%} to true							remowe 1 redstone named '&1krew' from player inventory							send 'reanomowałeś gracza!'							if arg1 is 'kup':								give 1 redstone named '&1krew' to player								remove 5 from player account 

@Topic:

Zczytywać zmienne w jakich instrukcjach?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

masz poprawiony:

variables:	{puls.%player%} = 0	{reanime.%player%} = false#on join:	send "na tym serwerze dziala skrypt Reanime, dodajacy mozliwosc reanimowania gracza. Więcej informacji pod /ra info" to player#on death:	set {_loc} to location of player	set {puls.%player%} to 5	loop 5 times:		wait 1 real second		add -1 to {puls.%player%}on respawn:	if {reanime.%player%} is true:		teleport player to {_loc}#command/ra [<text&gt] [<player&gt]:	trigger:		if arg1 is "info":			if arg2 is not set:				send "Reanime to skrypt pozwalajacy na reanimacje gracza za pomocą krwi (przedmiotu) do 5 sekund od smierci gracza. Reanimowany gracz zostaje teleportowany do miejsca smierci." to player		if arg1 is "use":			if arg2 is set:				is {puls.%arg2%} is not 0:				if player hold redstone named '&1krew':					set {reanime.%arg2%} to true					remowe 1 redstone named '&1krew' from player inventory					send "reanomowałeś gracza!"		if arg1 is "kup":			give 1 redstone named "&1krew" to player			if player account is greater than 5:				remove 5 from player account			else:				send "masz za mało forsy!" 

na przyszłość:
Wstawian wiadomości i nazwy w cudzysłów, czyli w to: "

a nie w apostrof czyli w to: '

pamiętaj zawsze cudzysłów przy wyświatlaniu wiadomości i nazwach!

A co do wysyłania wiadomości to nie:

send "wiadomość" to %player%

tylko:

send "wiadomość" to player

bez znaku %

% jest tylko w wiadomości np.:

send "Witaj %player%!" to player

 

Polecam zapoznać się z podstawami skript.

Problem powinien już być rozwiązany, po wklejeniu mojego skryptu

 

PS: Dodałem sprawdzenie czy gracz ma co najmniej 5$ , bo inaczej można kupować coś za 5$, nawet gdy ma się 0$...  Myślę, że dobrze, że to naprawiłem :)

Edytowane przez Slupik98
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...