Skocz do zawartości
  • 0

[Pytanie]


Brudassoda
 Udostępnij

Pytanie

Mam skrypt na gui 9 slotowe w ktorym mozna kupic sektor b gdy klikam na sektor b gdy mam 0$ (sektor b kosztuje 100k) to mi i tak daje sektor b jak zrobić żeby jak gracz bedzie kupywał sektor b i nie bedzie mial 100k to wysle mu wiadomosc ze nie ma wystraczajaco pieniedzy

Odnośnik do komentarza
Udostępnij na innych stronach

17 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
7 minut temu, Vineroy napisał:

if player's balance is less than 100000:

Kod

Else:

Send "nie masz wystarczająco pieniędzy" to player 

command /sektory [<text="gui">]:
    trigger:
        argument 1 is "gui":
            open chest with 1 rows named "Sektory" to player
            format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
        argument 1 is "execute":
            subtract 100000 from player's account
            execute console command "pex user %player% group set B"

tak wyglada moj kod i ma byc tak ?


command /sektory [<text="gui">]:
    trigger:
        argument 1 is "gui":
            open chest with 1 rows named "Sektory" to player
            format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
        argument 1 is "execute":
            subtract 100000 from player's account
            execute console command "pex user %player% group set B"
            if player's balance is less than 100000:
                else:
                    send "&cNie masz tyle pieniedzy!"

bo jak tak mam to wyskakuje blad 

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
6 minut temu, Brudassoda napisał:

command /sektory [<text="gui">]:
    trigger:
        argument 1 is "gui":
            open chest with 1 rows named "Sektory" to player
            format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
        argument 1 is "execute":
            subtract 100000 from player's account
            execute console command "pex user %player% group set B"

tak wyglada moj kod i ma byc tak ?


command /sektory [<text="gui">]:
    trigger:
        argument 1 is "gui":
            open chest with 1 rows named "Sektory" to player
            format slot 0 of player with 1 of cyan dye with name "&3Sektor B" to close then run [make player execute command "sektory execute"]
        argument 1 is "execute":
            subtract 100000 from player's account
            execute console command "pex user %player% group set B"
            if player's balance is less than 100000:
                else:
                    send "&cNie masz tyle pieniedzy!"

bo jak tak mam to wyskakuje blad 

 

Po argument 1  is  execute daj to 

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

  • 0

   argument 1 is "execute":
            if player's balance is less than 100000:

            send "&cNie masz tyle pieniedzy!"

else:
            execute console command "pex user %player% group set B"
            remove 100000 from player's balance

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
8 minut temu, BoeingC135 napisał:

   argument 1 is "execute":
            if player's balance is less than 100000:

            send "&cNie masz tyle pieniedzy!"

else:
            execute console command "pex user %player% group set B"
            remove 100000 from player's balance

mam taki błąd: 

 

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