Skocz do zawartości
  • 0

Skryp na Sektory (JAIL) Błąd


kondziu156
 Udostępnij

Pytanie

Witam, napisałem prosty skrypt na serwer Jail, który przenosi na sektory wyskakuję mi taki błąd:

'player's balance' is not a entity type (if player's balance is bigger than 100) x28

 

Mój cały kod

Wiem ze w skrypcie wiadomosci oraz kasa nie dokonczona :P

variables:	{start} = false	player's balance = 0	{sektor.%player%} = 0	{tp1} =command /start:	trigger:		if start is false:			execute console command "/pex user %player% group set A"			set {sektor.%player%} to Acommand /sektor:	trigger:		if {sektor.%player%} is "A":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to B				remove 100 from player's balance		if {sektor.%player%} is "B":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to C				remove 100 from player's balance		if {sektor.%player%} is "C":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to D				remove 100 from player's balance		if {sektor.%player%} is "D":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to E				remove 100 from player's balance		if {sektor.%player%} is "E":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to F				remove 100 from player's balance		if {sektor.%player%} is F":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to G				remove 100 from player's balance		if {sektor.%player%} is "G":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to H				remove 100 from player's balance		if {sektor.%player%} is "H":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to I				remove 100 from player's balance		if {sektor.%player%} is "I":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to J				remove 100 from player's balance		if {sektor.%player%} is "J":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to K				remove 100 from player's balance		if {sektor.%player%} is "K":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to L				remove 100 from player's balance		if {sektor.%player%} is "L":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to M				remove 100 from player's balance		if {sektor.%player%} is "M":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to N				remove 100 from player's balance		if {sektor.%player%} is "N":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to O				remove 100 from player's balance		if {sektor.%player%} is "O":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to P				remove 100 from player's balance		if {sektor.%player%} is "P":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to Q				remove 100 from player's balance		if {sektor.%player%} is "Q":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to R				remove 100 from player's balance		if {sektor.%player%} is "R":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to S				remove 100 from player's balance		if {sektor.%player%} is "S":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to T				remove 100 from player's balance		if {sektor.%player%} is "T":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to U				remove 100 from player's balance		if {sektor.%player%} is "U":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to V				remove 100 from player's balance		if {sektor.%player%} is "V":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to W				remove 100 from player's balance		if {sektor.%player%} is "X":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to X				remove 100 from player's balance		if {sektor.%player%} is "Y":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to Y				remove 100 from player's balance		if {sektor.%player%} is "Y":			player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to B				remove 100 from player's balance		if {sektor.%player%} is "Z":			player's balance is greater than 100:				execute console command "/pex user %player% group set Gracz"				broadcast "&7Gracz &8%player% &7wyszedl z wiezienia"				set {sektor.%player%} to Graczon entering of region "tp1":	teleport player to {tp1}command /jdskjdksdasd:	trigger:		set {tp1} to player's location

@EDIT

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

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

 

zrób zamiast:

if player's balance is bigger than 100:

to

player's balance is greater than 100:

Już testuje...

Wiesz co to samo, ale wiem w czym problem jestem idiotą i nie mam Vault, iConomy xd, ale masz naj

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

  • 0

Mały offtop. Do sprawdzania pieniędzy gracza nie trzeba iConomy ani Vault, wystarczy Essentials (EssentialsEconomy). I w wiadomościach zamiast "send" zrób "broadcast" (chyba że to efekt zamierzony) bo "send" wysyła tylko do gracza który uczestniczy w wydarzeniu, a "broadcast" do wszystkich obecnych na serwerze, praz dodaj drugi cudzysłów.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Mały offtop. Do sprawdzania pieniędzy gracza nie trzeba iConomy ani Vault, wystarczy Essentials (EssentialsEconomy). I w wiadomościach zamiast "send" zrób "broadcast" (chyba że to efekt zamierzony) bo "send" wysyła tylko do gracza który uczestniczy w wydarzeniu, a "broadcast" do wszystkich obecnych na serwerze, praz dodaj drugi cudzysłów.

Ok poprawie, ale można zawsze dodać to all players, ale z twoim będzie przejrzysty kod

Nadal nie działa taki sam błąd

@EDIT

poprawione

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

  • 0

nie pisz znaku $, samo 100

uzywaj

if player's balance is greater than 100

2. Takie długie kody dawaj w spoiler bo się rzygać chce jak to trzeba na telefonie przewijać :)

i jak piszesz

set {sektor.%player%} to A

to A dawaj w cudzyslowach "A"

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

  • 0

Okey zrobię spoilery, ale jak dalem if player's balance is greater than 100, bez $ lub z nim błąd :(

variables:	{start} = false	{sektor.%player%} = 0command /start:	trigger:		if start is false:			execute console command "/pex user %player% group set A"			set {sektor.%player%} to "Acommand /sektor:	trigger:		if {sektor.%player%} is "A":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "B"				remove 100 from player's balance		if {sektor.%player%} is "B":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "C"				remove 100 from player's balance		if {sektor.%player%} is "C":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "D"				remove 100 from player's balance		if {sektor.%player%} is "D":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "E"				remove 100 from player's balance		if {sektor.%player%} is "E":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "F"				remove 100 from player's balance		if {sektor.%player%} is F":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "G"				remove 100 from player's balance		if {sektor.%player%} is "G":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "H"				remove 100 from player's balance		if {sektor.%player%} is "H":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "I"				remove 100 from player's balance		if {sektor.%player%} is "I":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "J"				remove 100 from player's balance		if {sektor.%player%} is "J":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "K"				remove 100 from player's balance		if {sektor.%player%} is "K":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "L"				remove 100 from player's balance		if {sektor.%player%} is "L":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "M"				remove 100 from player's balance		if {sektor.%player%} is "M":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "N"				remove 100 from player's balance		if {sektor.%player%} is "N":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "O"				remove 100 from player's balance		if {sektor.%player%} is "O":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "P"				remove 100 from player's balance		if {sektor.%player%} is "P":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "Q"				remove 100 from player's balance		if {sektor.%player%} is "Q":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "R"				remove 100 from player's balance		if {sektor.%player%} is "R":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "S"				remove 100 from player's balance		if {sektor.%player%} is "S":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "T"				remove 100 from player's balance		if {sektor.%player%} is "T":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "U"				remove 100 from player's balance		if {sektor.%player%} is "U":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "V"				remove 100 from player's balance		if {sektor.%player%} is "V":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "W"				remove 100 from player's balance		if {sektor.%player%} is "X":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "X"				remove 100 from player's balance		if {sektor.%player%} is "Y":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "Y"				remove 100 from player's balance		if {sektor.%player%} is "Y":			if player's balance is greater than 100:				execute console command "/pex user %player% group set B"				broadcast "&7Gracz &8%player% &7awansował do sektoru B"				set {sektor.%player%} to "Z"				remove 100 from player's balance		if {sektor.%player%} is "Z":			if player's balance is greater than 100:				execute console command "/pex user %player% group set Gracz"				broadcast "&7Gracz &8%player% &7wyszedl z wiezienia"				set {sektor.%player%} to "Gracz"

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

  • 0

ok a mozesz wkleic jaki masz błąd? bo telepatykiem (ten co sie telepie :)) ani jasnowidzem nie jestem

i chyba nie powinno byc z kazdego sektoru awansowanie do "B"

3w3ntualni3 daj

if balance of player is greater than 100:

i popraw na

command /start:	trigger:		if {start} is false:			execute console command "/pex user %player% group set A"			set {sektor.%player%} to "A"
ten kod ma byc do jednego gracza (piszacego /start) czy do wszystkich naraz?
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

ok a mozesz wkleic jaki masz błąd? bo telepatykiem (ten co sie telepie :)) ani jasnowidzem nie jestem

i chyba nie powinno byc z kazdego sektoru awansowanie do "B"

3w3ntualni3 daj

if balance of player is greater than 100:

i popraw na

command /start:	trigger:		if {start} is false:			execute console command "/pex user %player% group set A"			set {sektor.%player%} to "A"
ten kod ma byc do jednego gracza (piszacego /start) czy do wszystkich naraz?

poprawie, jednego xd sry za blad.

błąd:

[23:15:21 ERROR]: 'start' is not an entity type (sektory.sk, line 6: if start is false:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 12: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 18: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 24: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 30: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 36: if player's balance is greater than 100:')

[23:15:21 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (sektory.sk, line 41: if {sektor.%player%} is F":')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 48: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 54: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 60: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 66: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 72: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 78: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 84: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 90: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 96: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 102: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 108: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 114: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 120: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 126: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 132: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 138: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 144: if player's balance is greater than 100:')

[23:15:21 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 150: if player's balance is greater than 100:')

[23:15:22 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 156: if player's balance is greater than 100:')

[23:15:22 ERROR]: 'player's balance' is not an entity type (sektory.sk, line 162: if player's balance is greater than 100:')

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

doc nie kłamie:

add 10£ to the player's account

remove Fr. 9.95 from the player's money

set the victim's money to 0

increase the attacker's balance by the level of the victim * 100

if player's account is greater than 100:

if account of player is greater than 100:

if player's money is greater than 100:

if money of player is greater than 100:

testuj :)

(jutro, teraz idz spac :) )

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

łap skrypt na sklep podobny ale sobie przerób i bd miał:)

on rightclick on sign:	if line 2 of block is "&e&lZlote":		if player have permission "sklep.gracz":			if player's money is greater than or equal to 200:				remove 200 from player's money				add 1 gold helmet to player's inventory				add 1 gold chestplate to player's inventory				add 1 gold leggings to player's inventory				add 1 gold boots to player's inventory				send "&e&L[&9&lSklep &4&lFireGun&e&l]&9&lzakupiles Zlote eq"				stop			else if player's money is less than 200:				send "&e&L[&9&lSklep &4&lFireGun&e&l]&9&lNie masz tyle pieniedzy!"		else:			send "&e&L[&9&lSklep &4&lFireGun&e&l]&9&lNie Jestes Graczem!"			stop
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Automatycznie wygenerowana wiadomość.

Ten temat został zamknięty przez moderatora lub osobę, która posiada do tego uprawnienia.

Powód: Rozwiązane.

Jeżeli nie zgadzasz się z tą decyzją skontaktuj się z moderatorem, który zamknął ten temat.

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ę...